Commit 092e2095 authored by diego's avatar diego

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8863 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3b4d6977
...@@ -1291,6 +1291,7 @@ if test $targetos = darwin; then ...@@ -1291,6 +1291,7 @@ if test $targetos = darwin; then
disabled shared && needmdynamicnopic="yes" disabled shared && needmdynamicnopic="yes"
fi fi
fi fi
enabled needmdynamicnopic && add_cflags -mdynamic-no-pic
disabled optimize || add_cflags -fomit-frame-pointer disabled optimize || add_cflags -fomit-frame-pointer
...@@ -1773,8 +1774,7 @@ if enabled gprof; then ...@@ -1773,8 +1774,7 @@ if enabled gprof; then
add_ldflags "-p" add_ldflags "-p"
fi fi
VHOOKCFLAGS="-fPIC $CFLAGS" VHOOKCFLAGS="-fPIC `echo $CFLAGS | sed s/-mdynamic-no-pic//`"
enabled needmdynamicnopic && add_cflags -mdynamic-no-pic
# find if .align arg is power-of-two or not # find if .align arg is power-of-two or not
if test $asmalign_pot = "unknown"; then if test $asmalign_pot = "unknown"; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment