diff options
author | jperkin <jperkin@pkgsrc.org> | 2016-03-02 18:45:21 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2016-03-02 18:45:21 +0000 |
commit | 7b1b6400f428d50cbd7e629ba235ddb2ea33f6e1 (patch) | |
tree | c592af9075f05911e66891b3f61f76679356f2da /mk/compiler | |
parent | 478a210bfe1e5d1173b8fad5a51db468ac5a04a7 (diff) | |
download | pkgsrc-7b1b6400f428d50cbd7e629ba235ddb2ea33f6e1.tar.gz |
Pass correct GCC ABI flags on AIX.
Fix from Eric N. Vander Weele <ericvw@gmail.com>
Diffstat (limited to 'mk/compiler')
-rw-r--r-- | mk/compiler/gcc.mk | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk index 3fb8532fd24..e0f73858081 100644 --- a/mk/compiler/gcc.mk +++ b/mk/compiler/gcc.mk @@ -1,4 +1,4 @@ -# $NetBSD: gcc.mk,v 1.163 2015/07/26 22:13:17 khorben Exp $ +# $NetBSD: gcc.mk,v 1.164 2016/03/02 18:45:21 jperkin Exp $ # # This is the compiler definition for the GNU Compiler Collection. # @@ -821,9 +821,14 @@ _COMPILER_STRIP_VARS+= ${_GCC_VARS} IMAKEOPTS+= -DHasGcc2=YES -DHasGcc2ForCplusplus=YES .endif +.if ${OPSYS} == "AIX" +# On AIX the GCC toolchain recognizes -maix32 and -maix64, +# -m32 or -m64 are not recognized. +_COMPILER_ABI_FLAG.32= -maix32 +_COMPILER_ABI_FLAG.64= -maix64 # On HP-UX the GCC toolchain must be specifically targeted to an ABI, # -m32 or -m64 are not recognized. -.if ${OPSYS} == "HPUX" +.elif ${OPSYS} == "HPUX" _COMPILER_ABI_FLAG.32= # empty _COMPILER_ABI_FLAG.64= # empty .else |