[FFmpeg-devel] [Patch] vhook and darwin link fix

SciFi sci-fi
Fri Aug 17 21:55:22 CEST 2007


I'm having to use this patch to get around invalid ldflags when
darwin's linker is used for vhook w/ --enabled-shared :

Index: configure
--- configure	(revision 10134)
+++ configure	(working copy)
@@ -1645,8 +1645,12 @@
 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
 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.

More information about the ffmpeg-devel mailing list