summaryrefslogtreecommitdiff
path: root/mk/compiler/mipspro.mk
diff options
context:
space:
mode:
authorjschauma <jschauma>2004-06-10 20:34:08 +0000
committerjschauma <jschauma>2004-06-10 20:34:08 +0000
commitd9b21989e314d559e8d3ebd980b6997221223890 (patch)
tree99c4506836b965dd4cccec6c01d730f7231b9032 /mk/compiler/mipspro.mk
parent4e8948035cccd1464d85881c3d73caf28767f865 (diff)
downloadpkgsrc-d9b21989e314d559e8d3ebd980b6997221223890.tar.gz
We really need to pass the ABI flags to both CFLAGS and LDFLAGS, since
some packages (for example ntp4) have configure scripts that try to be clever and insert their own if they don't find any. This would be wrong on a system that relies on /etc/compiler.defaults to choose the correct ABI.
Diffstat (limited to 'mk/compiler/mipspro.mk')
-rw-r--r--mk/compiler/mipspro.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/compiler/mipspro.mk b/mk/compiler/mipspro.mk
index edb060e5afd..ace179cbd15 100644
--- a/mk/compiler/mipspro.mk
+++ b/mk/compiler/mipspro.mk
@@ -1,4 +1,4 @@
-# $NetBSD: mipspro.mk,v 1.23 2004/05/06 14:25:02 jschauma Exp $
+# $NetBSD: mipspro.mk,v 1.24 2004/06/10 20:34:08 jschauma Exp $
.if !defined(COMPILER_MIPSPRO_MK)
COMPILER_MIPSPRO_MK= defined
@@ -63,4 +63,10 @@ ${${_target_}}:
. endif
.endfor
+.if defined(ABI)
+MABIFLAG= -${ABI:C/^32$/n&/}
+CFLAGS+= ${MABIFLAG}
+LDFLAGS+= ${MABIFLAG}
+.endif
+
.endif # COMPILER_MIPSPRO_MK