diff options
author | Ian Lynagh <igloo@earth.li> | 2011-04-29 12:59:00 +0100 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2011-04-29 12:59:00 +0100 |
commit | 28e92f3622eaf5ea28cb6226aa41cee8ad69681d (patch) | |
tree | 03b550d9d1778f34bf49f5eeb6cc29a7f4749b85 /aclocal.m4 | |
parent | 3451da4b9e740a432738def3acb077af1da52ee3 (diff) | |
download | haskell-28e92f3622eaf5ea28cb6226aa41cee8ad69681d.tar.gz |
Move the machdepCCOpts flags into cCcOpts
This will ultimately mean they end up in the settings file, rather
than being hardcoded.
We now unconditionally give -D_REENTRANT on alpha, but I think that's
probably the right thing to do nowadays anyway.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 4b750ef3f2..357c2e33fd 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -105,6 +105,21 @@ AC_DEFUN([FPTOOLS_SET_C_LD_FLAGS], $4="$$4 -arch x86_64" $5="$$5 -m64" ;; + alpha-*) + # For now, to suppress the gcc warning "call-clobbered + # register used for global register variable", we simply + # disable all warnings altogether using the -w flag. Oh well. + $2="$$2 -w -mieee -D_REENTRANT" + $3="$$3 -w -mieee -D_REENTRANT" + $5="$$5 -w -mieee -D_REENTRANT" + ;; + hppa*) + # ___HPUX_SOURCE, not _HPUX_SOURCE, is #defined if -ansi! + # (very nice, but too bad the HP /usr/include files don't agree.) + $2="$$2 -D_HPUX_SOURCE" + $3="$$3 -D_HPUX_SOURCE" + $5="$$5 -D_HPUX_SOURCE" + ;; esac # If gcc knows about the stack protector, turn it off. |