Fix configure to properly build without PIC by default on Darwin
authorAlexander Strange <astrange@ithinksw.com>
Wed, 12 Mar 2008 23:15:57 +0000 (23:15 +0000)
committerRobert Swain <robert.swain@gmail.com>
Wed, 12 Mar 2008 23:15:57 +0000 (23:15 +0000)
Patch by Alexander Strange (astrange ithinksw com)

Originally committed as revision 12425 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 4bea320..32a3980 100755 (executable)
--- a/configure
+++ b/configure
@@ -1374,7 +1374,7 @@ if test $targetos = darwin; then
         add_cflags "-pipe"
         check_cflags "-force_cpusubtype_ALL"
         check_cflags "-Wno-sign-compare"
-        disabled shared && add_cflags -mdynamic-no-pic
+        enabled shared || add_cflags -mdynamic-no-pic
     fi
 fi