summaryrefslogtreecommitdiff
path: root/mk/compiler
diff options
context:
space:
mode:
authormarkd <markd>2006-07-06 11:46:33 +0000
committermarkd <markd>2006-07-06 11:46:33 +0000
commit6c07b8c01ee1dc2f379a36d78c68c04104408eb4 (patch)
treee0361e52712f67b4be9aed411fb928e2539ae23e /mk/compiler
parentdcb66613c8fedbb88391a963deb07656ac4cf2dd (diff)
downloadpkgsrc-6c07b8c01ee1dc2f379a36d78c68c04104408eb4.tar.gz
Set _COMPILER_ABI_FLAG.64 correctly for non sparc (ie amd64).
Diffstat (limited to 'mk/compiler')
-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}