configure: set -mdynamic-no-pic flag in main darwin section
authorMåns Rullgård <mans@mansr.com>
Wed, 22 Jul 2009 20:41:39 +0000 (20:41 +0000)
committerMåns Rullgård <mans@mansr.com>
Wed, 22 Jul 2009 20:41:39 +0000 (20:41 +0000)
Originally committed as revision 19489 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 10955a7..8cfad80 100755 (executable)
--- a/configure
+++ b/configure
@@ -1824,6 +1824,7 @@ case $target_os in
         FFSERVERLDFLAGS=-Wl,-bind_at_load
         objformat="macho"
         enabled x86_64 && objformat="macho64"
+        enabled shared || check_cflags -mdynamic-no-pic
         ;;
     mingw32*)
         target_os=mingw32
@@ -1972,11 +1973,6 @@ enabled version3 && { enabled gpl && enable gplv3 || enable lgplv3; }
 
 check_deps $ARCH_EXT_LIST
 
-#Darwin CC versions
-if test $target_os = darwin; then
-        enabled shared || check_cflags -mdynamic-no-pic
-fi
-
 disabled optimizations || check_cflags -fomit-frame-pointer
 
 check_cc <<EOF || die "Symbol mangling check failed."