aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-08-23 13:46:07 +0000
committerMåns Rullgård <mans@mansr.com>2009-08-23 13:46:07 +0000
commitbce7b696a258efbc912226a104d37972c6f7bd25 (patch)
treecad5dc2bd54fbfe18c45a2c4a4e59785748f703e /configure
parentc7312933ce571a686db242d3e4bdd6556af97c22 (diff)
downloadffmpeg-bce7b696a258efbc912226a104d37972c6f7bd25.tar.gz
Add PIC flags early so tests they affect give correct results
This is mainly the checks for ebx on x86, but possibly others too. Originally committed as revision 19687 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 6 insertions, 4 deletions
diff --git a/configure b/configure
index d4ec71362c..6d918c80f7 100755
--- a/configure
+++ b/configure
@@ -2051,6 +2051,12 @@ check_deps $ARCH_EXT_LIST
disabled optimizations || check_cflags -fomit-frame-pointer
+if enabled pic; then
+ add_cppflags -DPIC
+ add_cflags -fPIC
+ add_asflags -fPIC
+fi
+
check_cc <<EOF || die "Symbol mangling check failed."
int ff_extern;
EOF
@@ -2443,8 +2449,6 @@ elif enabled gcc; then
check_cflags -fno-tree-vectorize
fi
-enabled pic && LIBOBJFLAGS='$(PIC)'
-
if enabled gprof; then
add_cflags -p
add_ldflags -p
@@ -2634,8 +2638,6 @@ echo "LDFLAGS=$LDFLAGS" >> config.mak
echo "FFSERVERLDFLAGS=$FFSERVERLDFLAGS" >> config.mak
echo "SHFLAGS=$SHFLAGS" >> config.mak
echo "YASMFLAGS=$YASMFLAGS" >> config.mak
-echo "LIBOBJFLAGS=$LIBOBJFLAGS" >> config.mak
-echo "PIC=-fPIC -DPIC" >> config.mak
echo "BUILDSUF=$build_suffix" >> config.mak
echo "FULLNAME=$FULLNAME" >> config.mak
echo "LIBPREF=$LIBPREF" >> config.mak