changeset 31663:ee4a3866f6f9

Move PIC test out of the x86 section; it is not only required on x86.
author diego
date Tue, 13 Jul 2010 11:46:54 +0000
parents 7303e238c5fa
children 0850cb05c836
files configure
diffstat 1 files changed, 15 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Jul 13 10:49:23 2010 +0000
+++ b/configure	Tue Jul 13 11:46:54 2010 +0000
@@ -2643,6 +2643,21 @@
 fi
 echores $_asmalign_pot
 
+
+echocheck "PIC"
+pic=no
+cat > $TMPC << EOF
+int main(void) {
+#if !(defined(__PIC__) || defined(__pic__) || defined(PIC))
+#error PIC not enabled
+#endif
+    return 0;
+}
+EOF
+cc_check && pic=yes && extra_cflags="$extra_cflags -DPIC"
+echores $pic
+
+
 if x86 ; then
 echocheck "10 assembler operands"
 ten_operands=no
@@ -2680,18 +2695,6 @@
 cc_check && ebx_available=yes && def_ebx_available='#define HAVE_EBX_AVAILABLE 1'
 echores $ebx_available
 
-echocheck "PIC"
-pic=no
-cat > $TMPC << EOF
-int main(void) {
-#if !(defined(__PIC__) || defined(__pic__) || defined(PIC))
-#error PIC not enabled
-#endif
-    return 0;
-}
-EOF
-cc_check && pic=yes && extra_cflags="$extra_cflags -DPIC"
-echores $pic
 
 echocheck "yasm"
 if test -z "$YASMFLAGS" ; then