[FFmpeg-devel] [Patch] vhook and darwin link fix
Diego Biurrun
diego
Mon Aug 20 12:08:34 CEST 2007
On Fri, Aug 17, 2007 at 07:55:22PM +0000, SciFi wrote:
>
> I'm having to use this patch to get around invalid ldflags when
> darwin's linker is used for vhook w/ --enabled-shared :
>
> --- configure (revision 10134)
> +++ configure (working copy)
> @@ -1645,8 +1645,12 @@
> fi
>
> if enabled vhook; then
> - check_ldflags -rdynamic
> - check_ldflags -export-dynamic
> + if test $targetos = darwin; then
> + check_ldflags -dynamic
> + else
> + check_ldflags -rdynamic
> + check_ldflags -export-dynamic
> + fi
> fi
>
> enabled audio_beos && add_extralibs "-lmedia -lbe"
>
> fwiw my ./configure is letting vhook be enabled by default,
> but I do specify --enable-shared for other reasons ...
> somehow the -rdynamic and -export-dynamic naked checks by
> themselves are passing during ./configure even for darwin, but
> during actual link-time of the vhook modules there are other
> options specified for darwin that render them invalid in the
> actual context found there-in, if that makes any sense... ;)
> anyway, not checking for these flags during configure & if
> darwin, does fix the link-time problems when wanting shared
> module forms.
.. works fine here ..
Diego
More information about the ffmpeg-devel
mailing list