Use check_cflags for -mdynamic-no-pic so third-party compilers will work on Darwin.
authorAlexander Strange <astrange@ithinksw.com>
Sun, 27 Apr 2008 16:12:24 +0000 (16:12 +0000)
committerAlexander Strange <astrange@ithinksw.com>
Sun, 27 Apr 2008 16:12:24 +0000 (16:12 +0000)
Originally committed as revision 13007 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 840d054..c6bb4d7 100755 (executable)
--- a/configure
+++ b/configure
@@ -1358,7 +1358,7 @@ if test $target_os = darwin; then
         add_cflags "-pipe"
         check_cflags "-force_cpusubtype_ALL"
         check_cflags "-Wno-sign-compare"
-        enabled shared || add_cflags -mdynamic-no-pic
+        enabled shared || check_cflags -mdynamic-no-pic
     fi
 fi