Lines 591-601
case $host_cpu in
Link Here
|
591 |
if [[ "$asm" == auto && "$CFLAGS" != *-march* ]]; then |
591 |
if [[ "$asm" == auto && "$CFLAGS" != *-march* ]]; then |
592 |
CFLAGS="$CFLAGS -march=i686" |
592 |
CFLAGS="$CFLAGS -march=i686" |
593 |
fi |
593 |
fi |
594 |
if [[ "$asm" == auto && "$CFLAGS" != *-mfpmath* ]]; then |
|
|
595 |
CFLAGS="$CFLAGS -mfpmath=sse -msse" |
596 |
fi |
597 |
CFLAGS="-m32 $CFLAGS" |
598 |
LDFLAGS="-m32 $LDFLAGS" |
599 |
elif [ $compiler = ICC ]; then |
594 |
elif [ $compiler = ICC ]; then |
600 |
# icc on linux has various degrees of mod16 stack support |
595 |
# icc on linux has various degrees of mod16 stack support |
601 |
if [ $SYS = LINUX ]; then |
596 |
if [ $SYS = LINUX ]; then |
Lines 627-639
case $host_cpu in
Link Here
|
627 |
ARCH="X86_64" |
622 |
ARCH="X86_64" |
628 |
AS="yasm" |
623 |
AS="yasm" |
629 |
ASFLAGS="$ASFLAGS -DARCH_X86_64=1 -I\$(SRCPATH)/common/x86/" |
624 |
ASFLAGS="$ASFLAGS -DARCH_X86_64=1 -I\$(SRCPATH)/common/x86/" |
630 |
[ $compiler = GNU ] && CFLAGS="-m64 $CFLAGS" && LDFLAGS="-m64 $LDFLAGS" |
|
|
631 |
if [ "$SYS" = MACOSX ]; then |
625 |
if [ "$SYS" = MACOSX ]; then |
632 |
ASFLAGS="$ASFLAGS -f macho64 -m amd64 -DPIC -DPREFIX" |
626 |
ASFLAGS="$ASFLAGS -f macho64 -m amd64 -DPIC -DPREFIX" |
633 |
if cc_check '' "-arch x86_64"; then |
|
|
634 |
CFLAGS="$CFLAGS -arch x86_64" |
635 |
LDFLAGS="$LDFLAGS -arch x86_64" |
636 |
fi |
637 |
elif [ "$SYS" = WINDOWS -o "$SYS" = CYGWIN ]; then |
627 |
elif [ "$SYS" = WINDOWS -o "$SYS" = CYGWIN ]; then |
638 |
ASFLAGS="$ASFLAGS -f win32 -m amd64" |
628 |
ASFLAGS="$ASFLAGS -f win32 -m amd64" |
639 |
# only the GNU toolchain is inconsistent in prefixing function names with _ |
629 |
# only the GNU toolchain is inconsistent in prefixing function names with _ |
Lines 641-647
case $host_cpu in
Link Here
|
641 |
[ $compiler = GNU ] && LDFLAGS="$LDFLAGS -Wl,--nxcompat -Wl,--dynamicbase" |
631 |
[ $compiler = GNU ] && LDFLAGS="$LDFLAGS -Wl,--nxcompat -Wl,--dynamicbase" |
642 |
[ $compiler = GNU ] && RCFLAGS="--target=pe-x86-64 $RCFLAGS" |
632 |
[ $compiler = GNU ] && RCFLAGS="--target=pe-x86-64 $RCFLAGS" |
643 |
else |
633 |
else |
644 |
ASFLAGS="$ASFLAGS -f elf -m amd64" |
634 |
if cpp_check "" "" "__ILP32__" ; then |
|
|
635 |
ASFLAGS="$ASFLAGS -f elf -m x32" |
636 |
else |
637 |
ASFLAGS="$ASFLAGS -f elf -m amd64" |
638 |
fi |
645 |
fi |
639 |
fi |
646 |
;; |
640 |
;; |
647 |
powerpc|powerpc64) |
641 |
powerpc|powerpc64) |
Lines 1006-1015
if [ "$pic" = "yes" ] ; then
Link Here
|
1006 |
[ $SYS = SunOS -a "$ARCH" = "X86" ] && SOFLAGS="$SOFLAGS -mimpure-text" |
1000 |
[ $SYS = SunOS -a "$ARCH" = "X86" ] && SOFLAGS="$SOFLAGS -mimpure-text" |
1007 |
fi |
1001 |
fi |
1008 |
|
1002 |
|
1009 |
if [ "$debug" != "yes" -a "$gprof" != "yes" ]; then |
|
|
1010 |
CFLAGS="$CFLAGS -fomit-frame-pointer" |
1011 |
fi |
1012 |
|
1013 |
if [ "$strip" = "yes" ]; then |
1003 |
if [ "$strip" = "yes" ]; then |
1014 |
LDFLAGS="$LDFLAGS -s" |
1004 |
LDFLAGS="$LDFLAGS -s" |
1015 |
fi |
1005 |
fi |