comparison configure @ 35182:b534bdb14c5f

build/configure: Move addition of extra CFLAGS further down The test is know made on cc_vendor after we correctly identified the compiler. Before we were just assuming if the program is named cc it is GCC. For the record: The condition may still/or in future be wrong for some compilers on darwin and I doubt the flags are really necessary nowadays. Patch by Xidorn Quan >quanxunzhen gmail.com<
author al
date Sat, 27 Oct 2012 12:22:26 +0000
parents cf26d64d5972
children dff978cf2aa9
comparison
equal deleted inserted replaced
35181:1a50a0bcd444 35182:b534bdb14c5f
1575 _timer=timer-linux.c 1575 _timer=timer-linux.c
1576 _getch=getch2.c 1576 _getch=getch2.c
1577 1577
1578 if darwin; then 1578 if darwin; then
1579 extra_cflags="-mdynamic-no-pic $extra_cflags" 1579 extra_cflags="-mdynamic-no-pic $extra_cflags"
1580 if test "$(basename $_cc)" != "clang" ; then
1581 extra_cflags="-falign-loops=16 -shared-libgcc $extra_cflags"
1582 fi
1583 _timer=timer-darwin.c 1580 _timer=timer-darwin.c
1584 fi 1581 fi
1585 1582
1586 if aix ; then 1583 if aix ; then
1587 extra_ldflags="$extra_ldflags -lC" 1584 extra_ldflags="$extra_ldflags -lC"
1722 break 1719 break
1723 fi 1720 fi
1724 done 1721 done
1725 fi # icc 1722 fi # icc
1726 test "$cc_fail" = yes && die "unsupported compiler version" 1723 test "$cc_fail" = yes && die "unsupported compiler version"
1724
1725 if darwin && test "$cc_vendor" != "clang" ; then
1726 extra_cflags="-falign-loops=16 -shared-libgcc $extra_cflags"
1727 fi
1727 1728
1728 echocheck "working compiler" 1729 echocheck "working compiler"
1729 cflag_check "" || die "Compiler is not functioning correctly. Check your installation and custom CFLAGS $CFLAGS ." 1730 cflag_check "" || die "Compiler is not functioning correctly. Check your installation and custom CFLAGS $CFLAGS ."
1730 echo "yes" 1731 echo "yes"
1731 1732