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

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


Hi,

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

====cut-here====
Index: configure
===================================================================
--- 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"
====cut-here====

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