Commit ffea9f51 authored by Alexander Prikhodko's avatar Alexander Prikhodko Committed by Fiona Glaser
Browse files

configure: force select -mXX gcc option for i386/x86-64

Makes multilib compilation more convenient.
parent f4aefb38
...@@ -537,6 +537,8 @@ case $host_cpu in ...@@ -537,6 +537,8 @@ case $host_cpu in
if [[ "$asm" == auto && "$CFLAGS" != *-mfpmath* ]]; then if [[ "$asm" == auto && "$CFLAGS" != *-mfpmath* ]]; then
CFLAGS="$CFLAGS -mfpmath=sse -msse" CFLAGS="$CFLAGS -mfpmath=sse -msse"
fi fi
CFLAGS="-m32 $CFLAGS"
LDFLAGS="-m32 $LDFLAGS"
else else
# icc on linux has various degrees of mod16 stack support # icc on linux has various degrees of mod16 stack support
if [ $SYS = LINUX ]; then if [ $SYS = LINUX ]; then
...@@ -565,6 +567,7 @@ case $host_cpu in ...@@ -565,6 +567,7 @@ case $host_cpu in
x86_64) x86_64)
ARCH="X86_64" ARCH="X86_64"
AS="yasm" AS="yasm"
[ $compiler = GNU ] && CFLAGS="-m64 $CFLAGS" && LDFLAGS="-m64 $LDFLAGS"
if [ "$SYS" = MACOSX ]; then if [ "$SYS" = MACOSX ]; then
ASFLAGS="$ASFLAGS -f macho64 -m amd64 -DPIC -DPREFIX" ASFLAGS="$ASFLAGS -f macho64 -m amd64 -DPIC -DPREFIX"
if cc_check '' "-arch x86_64"; then if cc_check '' "-arch x86_64"; then
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment