summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjperkin <jperkin>2016-03-02 18:45:21 +0000
committerjperkin <jperkin>2016-03-02 18:45:21 +0000
commiteeffe94219ec292a9d49f58db83b6831f775a11b (patch)
treec592af9075f05911e66891b3f61f76679356f2da /mk
parent2b7a36631cc16f9a723910667d8ff152bc96d2cb (diff)
downloadpkgsrc-eeffe94219ec292a9d49f58db83b6831f775a11b.tar.gz
Pass correct GCC ABI flags on AIX.
Fix from Eric N. Vander Weele <ericvw@gmail.com>
Diffstat (limited to 'mk')
-rw-r--r--mk/compiler/gcc.mk9
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