small simplification
authorDiego Biurrun <diego@biurrun.de>
Sat, 18 Aug 2007 08:57:38 +0000 (08:57 +0000)
committerDiego Biurrun <diego@biurrun.de>
Sat, 18 Aug 2007 08:57:38 +0000 (08:57 +0000)
Originally committed as revision 10141 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 6c3a2e6..8af75e3 100755 (executable)
--- a/configure
+++ b/configure
@@ -1285,7 +1285,6 @@ check_deps $ARCH_EXT_LIST
 test -z "$need_memalign" && need_memalign="$mmx"
 
 #Darwin CC versions
-needmdynamicnopic="no"
 if test $targetos = darwin; then
     if test -n "`$cc -v 2>&1 | grep xlc`"; then
         add_cflags "-qpdf2 -qlanglvl=extc99 -qmaxmem=-1 -qarch=auto -qtune=auto"
@@ -1293,10 +1292,9 @@ if test $targetos = darwin; then
         add_cflags "-no-cpp-precomp -pipe"
         check_cflags "-force_cpusubtype_ALL"
         check_cflags "-Wno-sign-compare"
-        disabled shared && needmdynamicnopic="yes"
+        disabled shared && add_cflags -mdynamic-no-pic
     fi
 fi
-enabled needmdynamicnopic && add_cflags -mdynamic-no-pic
 
 disabled optimize || add_cflags -fomit-frame-pointer