summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-08-20 01:06:18 +0000
committerMåns Rullgård <mans@mansr.com>2009-08-20 01:06:18 +0000
commit8a3c86277bf77ee14ea04ec97c30a7689beff25d (patch)
tree0f9de47009d4f36edab4c0278a24cff5f706f5ce /configure
parent90d43b52e101af0c0cfb97a6c767b6f25cc0f61a (diff)
downloadffmpeg-streaming-8a3c86277bf77ee14ea04ec97c30a7689beff25d.zip
ffmpeg-streaming-8a3c86277bf77ee14ea04ec97c30a7689beff25d.tar.gz
configure: add --enable-pic flag
Using this flag enables position-independent code even when not strictly required. It is impossible to use --disable-pic to forcibly disable PIC when other properties mandate it. Originally committed as revision 19672 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure21
1 files changed, 12 insertions, 9 deletions
diff --git a/configure b/configure
index b86b6f0..bb0b4b1 100755
--- a/configure
+++ b/configure
@@ -221,6 +221,7 @@ show_help(){
echo " --disable-neon disable neon optimizations"
echo " --disable-vis disable VIS optimizations"
echo " --disable-yasm disable use of yasm assembler"
+ echo " --enable-pic build position-independent code"
echo
echo "Developer options (useful when working on FFmpeg itself):"
echo " --disable-debug disable debugging symbols"
@@ -840,6 +841,7 @@ CONFIG_LIST="
mpegaudio_hp
network
nonfree
+ pic
postproc
powerpc_perf
rdft
@@ -1743,7 +1745,7 @@ case "$arch" in
arch="alpha"
enable fast_64bit
check_cflags -mieee
- pic=$shared
+ spic=$shared
;;
arm|armv[4567]*l)
arch="arm"
@@ -1756,29 +1758,29 @@ case "$arch" in
ia64)
arch="ia64"
enable fast_64bit
- pic=$shared
+ spic=$shared
;;
m68k)
arch="m68k"
;;
mips|mipsel|IP*)
arch="mips"
- pic=$shared
+ spic=$shared
;;
mips64)
arch="mips"
subarch="mips64"
enable fast_64bit
- pic=$shared
+ spic=$shared
;;
parisc|hppa)
arch="parisc"
- pic=$shared
+ spic=$shared
;;
parisc64|hppa64)
arch="parisc"
enable fast_64bit
- pic=$shared
+ spic=$shared
;;
"Power Macintosh"|ppc|powerpc)
arch="ppc"
@@ -1798,13 +1800,13 @@ case "$arch" in
;;
sparc)
arch="sparc"
- pic=$shared
+ spic=$shared
;;
sun4u|sparc64)
arch="sparc"
subarch="sparc64"
enable fast_64bit
- pic=$shared
+ spic=$shared
;;
i386|i486|i586|i686|i86pc|BePC)
arch="x86"
@@ -1817,7 +1819,7 @@ case "$arch" in
enable cmov
enable fast_cmov
enable fast_unaligned
- check_cc <<EOF && enable fast_64bit && subarch="x86_64" && pic=$shared
+ check_cc <<EOF && enable fast_64bit && subarch="x86_64" && spic=$shared
int test[sizeof(char*) - 7];
EOF
;;
@@ -1827,6 +1829,7 @@ EOF
esac
enable $arch $subarch
+enabled spic && enable pic
# OS specific
case $target_os in
OpenPOWER on IntegriCloud