diff options
author | markd <markd@pkgsrc.org> | 2006-07-06 11:46:33 +0000 |
---|---|---|
committer | markd <markd@pkgsrc.org> | 2006-07-06 11:46:33 +0000 |
commit | 42e8e95800db23c00ca0cc6c42c627126ffaae31 (patch) | |
tree | e0361e52712f67b4be9aed411fb928e2539ae23e /mk/compiler | |
parent | 7ebc8b46c8f1da430168572bd7deb85dc181bafa (diff) | |
download | pkgsrc-42e8e95800db23c00ca0cc6c42c627126ffaae31.tar.gz |
Set _COMPILER_ABI_FLAG.64 correctly for non sparc (ie amd64).
Diffstat (limited to 'mk/compiler')
-rw-r--r-- | mk/compiler/sunpro.mk | 6 |
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} |