From 8a3c86277bf77ee14ea04ec97c30a7689beff25d Mon Sep 17 00:00:00 2001 From: =?utf8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Thu, 20 Aug 2009 01:06:18 +0000 Subject: [PATCH] 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 --- configure | 21 ++++++++++++--------- 1 file 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 <