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
commitffc54d5851ae4fd94de7f5784b364104a4e5b02f (patch)
tree99df48bf4af1fe2bf3c5f3d68cfbede90fa8b1d5 /sysutils/memtestplus
parent1ebe40460aec9c4576ba107e1a88b40d6ffee8db (diff)
downloadpkgsrc-ffc54d5851ae4fd94de7f5784b364104a4e5b02f.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