summaryrefslogtreecommitdiff
path: root/sysutils/memtestplus
diff options
context:
space:
mode:
authortron <tron>2008-11-26 11:28:27 +0000
committertron <tron>2008-11-26 11:28:27 +0000
commit5f89737431d34c95fdf1ad791d36b25d7d730067 (patch)
tree99df48bf4af1fe2bf3c5f3d68cfbede90fa8b1d5 /sysutils/memtestplus
parente1ce76f7ce10db603b5bc7d24bc3650a19911271 (diff)
downloadpkgsrc-5f89737431d34c95fdf1ad791d36b25d7d730067.tar.gz
Fix build problem on systems using GCC 3.x (e.g. NetBSD 3.1). Problem
noted by Bernhard Riedel on #NetBSD IRC channel.
Diffstat (limited to 'sysutils/memtestplus')
-rw-r--r--sysutils/memtestplus/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/sysutils/memtestplus/Makefile b/sysutils/memtestplus/Makefile
index 688fe5407dc..c3eba2422bd 100644
--- a/sysutils/memtestplus/Makefile
+++ b/sysutils/memtestplus/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2008/11/24 04:06:00 smb Exp $
+# $NetBSD: Makefile,v 1.9 2008/11/26 11:28:27 tron Exp $
#
# Note -- version number also in the do-install rule
@@ -25,6 +25,12 @@ SUBST_SED.delcr= -e 's/.$$//g'
.include "options.mk"
+.include "../../mk/compiler.mk"
+
+.if !empty(CC_VERSION:Mgcc-3.*)
+BUILDLINK_TRANSFORM+= rm:-fno-stack-protector
+.endif
+
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/mdec
${INSTALL_DATA} ${WRKSRC}/memtest.bin ${PREFIX}/mdec/memtestplus.bin