diff options
author | Ian Lynagh <igloo@earth.li> | 2010-08-19 23:09:39 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2010-08-19 23:09:39 +0000 |
commit | 22cbec8d2dfbfdb7c6625a093ccb518fedf3a2d7 (patch) | |
tree | 98c1ddfbc638da5c400871caa17747f4a60a16e8 /aclocal.m4 | |
parent | aa5e377a4532df79dadafdb385a77d2e548ef32a (diff) | |
download | haskell-22cbec8d2dfbfdb7c6625a093ccb518fedf3a2d7.tar.gz |
Set -march=i686 on OS X x86 in the configure variables
We used to set it only in machdepCCOpts, so this is more consistent
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 747d064f2a..e0cae15acf 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -11,8 +11,12 @@ AC_DEFUN([FPTOOLS_SET_C_LD_FLAGS], [ case $$1 in i386-apple-darwin|powerpc-apple-darwin) - $2="$$2 -m32" - $3="$$3 -m32" + # By default, gcc on OS X will generate SSE + # instructions, which need things 16-byte aligned, + # but we don't 16-byte align things. Thus drop + # back to generic i686 compatibility. Trac #2983. + $2="$$2 -march=i686 -m32" + $3="$$3 -march=i686 -m32" ;; x86_64-apple-darwin) $2="$$2 -m64" |