summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhans <hans>2012-02-16 10:56:10 +0000
committerhans <hans>2012-02-16 10:56:10 +0000
commit737a5e5254e4b517c964ae0fbd387f2130958c1b (patch)
treecf97e442aecf4cce564e5a17bea2fe54c5c68d8b
parent157515432dd432139651b29cbe271da009b4d1f2 (diff)
downloadpkgsrc-737a5e5254e4b517c964ae0fbd387f2130958c1b.tar.gz
On SunOS, static linking is unsupported since 5.10, and it always was on
64bit platforms.
-rw-r--r--benchmarks/nbench/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/benchmarks/nbench/Makefile b/benchmarks/nbench/Makefile
index fa6bb448015..c0fd1c28652 100644
--- a/benchmarks/nbench/Makefile
+++ b/benchmarks/nbench/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2009/06/30 00:07:10 joerg Exp $
+# $NetBSD: Makefile,v 1.5 2012/02/16 10:56:10 hans Exp $
#
DISTNAME= nbench-byte-2.2.2
@@ -18,6 +18,12 @@ BUILD_TARGET= default
INSTALLATION_DIRS= bin
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "SunOS" && \
+ (!empty(OS_VERSION:M5.1*) || ${ABI} == 64)
+BUILDLINK_TRANSFORM+= rm:-static
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/nbench ${DESTDIR}${PREFIX}/bin