1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-08 13:22:53 +02:00

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
This commit is contained in:
Måns Rullgård 2009-08-20 01:06:18 +00:00
parent 90d43b52e1
commit 8a3c86277b

21
configure vendored
View File

@ -221,6 +221,7 @@ show_help(){
echo " --disable-neon disable neon optimizations" echo " --disable-neon disable neon optimizations"
echo " --disable-vis disable VIS optimizations" echo " --disable-vis disable VIS optimizations"
echo " --disable-yasm disable use of yasm assembler" echo " --disable-yasm disable use of yasm assembler"
echo " --enable-pic build position-independent code"
echo echo
echo "Developer options (useful when working on FFmpeg itself):" echo "Developer options (useful when working on FFmpeg itself):"
echo " --disable-debug disable debugging symbols" echo " --disable-debug disable debugging symbols"
@ -840,6 +841,7 @@ CONFIG_LIST="
mpegaudio_hp mpegaudio_hp
network network
nonfree nonfree
pic
postproc postproc
powerpc_perf powerpc_perf
rdft rdft
@ -1743,7 +1745,7 @@ case "$arch" in
arch="alpha" arch="alpha"
enable fast_64bit enable fast_64bit
check_cflags -mieee check_cflags -mieee
pic=$shared spic=$shared
;; ;;
arm|armv[4567]*l) arm|armv[4567]*l)
arch="arm" arch="arm"
@ -1756,29 +1758,29 @@ case "$arch" in
ia64) ia64)
arch="ia64" arch="ia64"
enable fast_64bit enable fast_64bit
pic=$shared spic=$shared
;; ;;
m68k) m68k)
arch="m68k" arch="m68k"
;; ;;
mips|mipsel|IP*) mips|mipsel|IP*)
arch="mips" arch="mips"
pic=$shared spic=$shared
;; ;;
mips64) mips64)
arch="mips" arch="mips"
subarch="mips64" subarch="mips64"
enable fast_64bit enable fast_64bit
pic=$shared spic=$shared
;; ;;
parisc|hppa) parisc|hppa)
arch="parisc" arch="parisc"
pic=$shared spic=$shared
;; ;;
parisc64|hppa64) parisc64|hppa64)
arch="parisc" arch="parisc"
enable fast_64bit enable fast_64bit
pic=$shared spic=$shared
;; ;;
"Power Macintosh"|ppc|powerpc) "Power Macintosh"|ppc|powerpc)
arch="ppc" arch="ppc"
@ -1798,13 +1800,13 @@ case "$arch" in
;; ;;
sparc) sparc)
arch="sparc" arch="sparc"
pic=$shared spic=$shared
;; ;;
sun4u|sparc64) sun4u|sparc64)
arch="sparc" arch="sparc"
subarch="sparc64" subarch="sparc64"
enable fast_64bit enable fast_64bit
pic=$shared spic=$shared
;; ;;
i386|i486|i586|i686|i86pc|BePC) i386|i486|i586|i686|i86pc|BePC)
arch="x86" arch="x86"
@ -1817,7 +1819,7 @@ case "$arch" in
enable cmov enable cmov
enable fast_cmov enable fast_cmov
enable fast_unaligned 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]; int test[sizeof(char*) - 7];
EOF EOF
;; ;;
@ -1827,6 +1829,7 @@ EOF
esac esac
enable $arch $subarch enable $arch $subarch
enabled spic && enable pic
# OS specific # OS specific
case $target_os in case $target_os in