changeset 36004:b81edd9d28ab

Move PIC detection to the front of PIE added. It seems that clang turns off PIC when -fpie is set, which causes part of ffmpeg failed to be compiled on OS X. In fact, in the configure of ffmpeg, PIC is unconditionally enabled, which could be introduced as ffmpeg seems to be an essential part of mplayer.
author upsuper
date Sat, 30 Mar 2013 03:32:16 +0000
parents 8fea01665c83
children 3be3990375da
files configure
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Fri Mar 29 17:28:44 2013 +0000
+++ b/configure	Sat Mar 30 03:32:16 2013 +0000
@@ -2761,6 +2761,14 @@
 fi
 
 
+echocheck "PIC"
+def_pic='#define CONFIG_PIC 0'
+pic=no
+cpp_condition_check '' 'defined(__PIC__) || defined(__pic__) || defined(PIC)' &&
+  pic=yes && extra_cflags="$extra_cflags -DPIC" && def_pic='#define CONFIG_PIC 1'
+echores $pic
+
+
 # try to create a relocatable binary by default
 echocheck "relocatable binary"
 if test $relocatable = "auto" ; then
@@ -2844,14 +2852,6 @@
 fi #if x86_32
 
 
-echocheck "PIC"
-def_pic='#define CONFIG_PIC 0'
-pic=no
-cpp_condition_check '' 'defined(__PIC__) || defined(__pic__) || defined(PIC)' &&
-  pic=yes && extra_cflags="$extra_cflags -DPIC" && def_pic='#define CONFIG_PIC 1'
-echores $pic
-
-
 def_bswap='#define HAVE_BSWAP 0'
 def_ebx_available='#define HAVE_EBX_AVAILABLE 0'
 def_xmm_clobbers='#define HAVE_XMM_CLOBBERS 0'