diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2015-11-19 12:55:35 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-11-19 13:24:33 +0100 |
commit | c5d8162d230c373b2b49ec94d3f9a027ff6e2dd6 (patch) | |
tree | 8dd134ff4a96f8e7291f0dc382d818ec69a50db2 /aclocal.m4 | |
parent | 7dfde0e8263f123c2a21dde50027fa97a20500ec (diff) | |
download | haskell-c5d8162d230c373b2b49ec94d3f9a027ff6e2dd6.tar.gz |
Make GHC aware of OSAIX and AixLD
GHC needs to be aware of targetting AIX because
AIX requires some special handling for the toolchain
(similiar to Solaris)
Reviewers: austin, bgamari
Reviewed By: bgamari
Subscribers: thomie, erikd
Differential Revision: https://phabricator.haskell.org/D1501
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 33f05e5a6f..e816e09b54 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -277,6 +277,9 @@ AC_DEFUN([FPTOOLS_SET_HASKELL_PLATFORM_VARS], dragonfly|osf1|hpux|linuxaout|freebsd2|gnu|nextstep2|nextstep3|sunos4|ultrix|irix|aix) test -z "[$]2" || eval "[$]2=OSUnknown" ;; + aix) + test -z "[$]2" || eval "[$]2=OSAIX" + ;; linux-android) test -z "[$]2" || eval "[$]2=OSAndroid" ;; @@ -1862,9 +1865,12 @@ case "$1-$2" in $3="linux" ;; # As far as I'm aware, none of these have relevant variants - freebsd|netbsd|openbsd|dragonfly|osf1|osf3|hpux|linuxaout|kfreebsdgnu|freebsd2|solaris2|mingw32|darwin|gnu|nextstep2|nextstep3|sunos4|ultrix|irix|aix|haiku) + freebsd|netbsd|openbsd|dragonfly|osf1|osf3|hpux|linuxaout|kfreebsdgnu|freebsd2|solaris2|mingw32|darwin|gnu|nextstep2|nextstep3|sunos4|ultrix|irix|haiku) $3="$1" ;; + aix*) # e.g. powerpc-ibm-aix7.1.3.0 + $3="aix" + ;; freebsd*) # like i686-gentoo-freebsd7 # i686-gentoo-freebsd8 # i686-gentoo-freebsd8.2 |