diff options
-rwxr-xr-x | configure | 27 |
1 files changed, 15 insertions, 12 deletions
@@ -2515,6 +2515,21 @@ else 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 @@ -2552,18 +2567,6 @@ EOF 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 |