summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2013-12-22 21:32:36 +0000
committerwiz <wiz@pkgsrc.org>2013-12-22 21:32:36 +0000
commit69dcfef0cbcd4ce740fa95e7e1c0f2372386bbc5 (patch)
tree49648f04e1bc50e16068eff79546ed59e87b6be4 /sysutils
parenta001206827e561a613ae002c0afa8f2a13758570 (diff)
downloadpkgsrc-69dcfef0cbcd4ce740fa95e7e1c0f2372386bbc5.tar.gz
Fix build on NetBSD-5* using a patch from John D. Baker in PR 48469.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/memtestplus/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/sysutils/memtestplus/Makefile b/sysutils/memtestplus/Makefile
index 79f5676f46a..f8f7c747625 100644
--- a/sysutils/memtestplus/Makefile
+++ b/sysutils/memtestplus/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2013/12/08 00:35:28 jakllsch Exp $
+# $NetBSD: Makefile,v 1.18 2013/12/22 21:32:36 wiz Exp $
#
# Note -- version number also in the do-install rule
@@ -17,6 +17,13 @@ LICENSE= gnu-gpl-v2
ONLY_FOR_PLATFORM= NetBSD-*-i386 Linux-*-i386 NetBSD-*-x86_64 Linux-*-x86_64
+.include "../../mk/bsd.prefs.mk"
+.if !empty(MACHINE_PLATFORM:MNetBSD-5.*)
+GCC_REQD+= 4.6
+.else
+GCC_REQD+= 4.5
+.endif
+
USE_TOOLS+= gmake
SUBST_CLASSES+= delcr
SUBST_STAGE.delcr= pre-patch