summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2006-07-06 11:46:33 +0000
committermarkd <markd@pkgsrc.org>2006-07-06 11:46:33 +0000
commitc4e507f6ed5f820a6e3c282a6fb855b98fb2fb30 (patch)
treee0361e52712f67b4be9aed411fb928e2539ae23e /mk
parent623d71991ed24efaf929ad7fbb7b1ad859b419e0 (diff)
downloadpkgsrc-c4e507f6ed5f820a6e3c282a6fb855b98fb2fb30.tar.gz
Set _COMPILER_ABI_FLAG.64 correctly for non sparc (ie amd64).
Diffstat (limited to 'mk')
-rw-r--r--mk/compiler/sunpro.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/compiler/sunpro.mk b/mk/compiler/sunpro.mk
index 076071bc313..f9b633ad8c2 100644
--- a/mk/compiler/sunpro.mk
+++ b/mk/compiler/sunpro.mk
@@ -1,4 +1,4 @@
-# $NetBSD: sunpro.mk,v 1.33 2005/07/21 01:36:25 grant Exp $
+# $NetBSD: sunpro.mk,v 1.34 2006/07/06 11:46:33 markd Exp $
.if !defined(COMPILER_SUNPRO_MK)
COMPILER_SUNPRO_MK= defined
@@ -41,7 +41,11 @@ _LINKER_RPATH_FLAG= -R
_COMPILER_RPATH_FLAG= -Wl,-R
# SunPro compiler must be passed certain flags to compile/link 64-bit code.
+.if ${MACHINE_ARCH} == "sparc"
_COMPILER_ABI_FLAG.64= -xtarget=ultra -xarch=v9
+.else
+_COMPILER_ABI_FLAG.64= -xarch=amd64
+.endif
.if exists(${CCPATH})
CC_VERSION_STRING!= ${CCPATH} -V 2>&1 || ${TRUE}