summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAlexander Strange <astrange@ithinksw.com>2007-05-01 21:05:15 +0000
committerDiego Biurrun <diego@biurrun.de>2007-05-01 21:05:15 +0000
commit074a9d2b58134ea94f7e455a730fec3460365b4c (patch)
treec839f1302caddbe48067ddd980943d97f69b297f /configure
parentd84707377f00b4c6b221918293c582b380903ccd (diff)
The configure test for ebx fails because it is run before the -mdynamic-no-pic
check. Move it before the ebx test and remove -mdynamic-no-pic from VHOOKCFLAGS later on. patch by Alexander Strange, astrange ithinksw com reference: Subject: [Ffmpeg-devel] [PATCH] fix CONFIG_EBX_AVAILABLE on Darwin/x86 Date: Fri, 13 Apr 2007 17:24:55 -0400 Originally committed as revision 8863 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index af300a17eb..568e66ab71 100755
--- a/configure
+++ b/configure
@@ -1291,6 +1291,7 @@ if test $targetos = darwin; then
disabled shared && needmdynamicnopic="yes"
fi
fi
+enabled needmdynamicnopic && add_cflags -mdynamic-no-pic
disabled optimize || add_cflags -fomit-frame-pointer
@@ -1773,8 +1774,7 @@ if enabled gprof; then
add_ldflags "-p"
fi
-VHOOKCFLAGS="-fPIC $CFLAGS"
-enabled needmdynamicnopic && add_cflags -mdynamic-no-pic
+VHOOKCFLAGS="-fPIC `echo $CFLAGS | sed s/-mdynamic-no-pic//`"
# find if .align arg is power-of-two or not
if test $asmalign_pot = "unknown"; then