summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2004-05-05 03:05:41 +0000
committerjschauma <jschauma@pkgsrc.org>2004-05-05 03:05:41 +0000
commit44f433156b701219e3e095b05bd927504ad6ff5f (patch)
tree30deef19f06c4da17b48aaf11623fb445b48ee0a /mk
parente8404bec454ec616d9140315e6bf03b726b9d74e (diff)
downloadpkgsrc-44f433156b701219e3e095b05bd927504ad6ff5f.tar.gz
gcc can use -mabi=${ABI}, if ABI is set (for example on Irix).
(Includes ugly hack for ABI-inconsistency. See also PR pkg/22571.)
Diffstat (limited to 'mk')
-rw-r--r--mk/compiler/gcc.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk
index a84c2b7ab39..e28b405bb7b 100644
--- a/mk/compiler/gcc.mk
+++ b/mk/compiler/gcc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.63 2004/05/04 00:11:23 danw Exp $
+# $NetBSD: gcc.mk,v 1.64 2004/05/05 03:05:41 jschauma Exp $
.if !defined(COMPILER_GCC_MK)
COMPILER_GCC_MK= defined
@@ -132,6 +132,13 @@ _LANGUAGES.gcc+= ${LANGUAGES.gcc:M${_lang_}}
CFLAGS+= -Wno-import
.endif
+# Some platforms (such as IRIX) may support different ABIs. Set the CFLAGS
+# accordingly.
+
+.if defined(ABI)
+CFLAGS+= -mabi=${ABI:C/^32$/n&/}
+.endif
+
.if !empty(_NEED_GCC2:M[yY][eE][sS])
#
# We require gcc-2.x in the lang/gcc directory.