diff options
author | Gabor Pali <pali.gabor@gmail.com> | 2014-07-21 22:13:24 +0200 |
---|---|---|
committer | Gabor Pali <pali.gabor@gmail.com> | 2014-07-21 22:16:55 +0200 |
commit | 7aabfa6292c2469cf3250e006869273fb1b356ce (patch) | |
tree | 77120bb0d309e872f8e833e1981a8f21012a8a54 /aclocal.m4 | |
parent | 9960afe413c0fe18cf988c1b7e4804c449b5875a (diff) | |
download | haskell-7aabfa6292c2469cf3250e006869273fb1b356ce.tar.gz |
Unbreak the build on FreeBSD/i386, where the default target arch is i486.
The recent version of ghc-prim assumes a more modern processor as it
exploits built-in atomic operations, and some of them are not yet
present on i486. Hence the -march flag is explicitly set to i686 for the
C compiler -- just to be in sync with the default of other distributions.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 42f760c2ed..394e405374 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -529,6 +529,9 @@ AC_DEFUN([FPTOOLS_SET_C_LD_FLAGS], i386-unknown-mingw32) $2="$$2 -march=i686" ;; + i386-portbld-freebsd*) + $2="$$2 -march=i686" + ;; i386-apple-darwin) $2="$$2 -m32" $3="$$3 -m32" |