pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/memtestplus Fix build problem on systems usin...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/68bc398ecac6
branches:  trunk
changeset: 550684:68bc398ecac6
user:      tron <tron%pkgsrc.org@localhost>
date:      Wed Nov 26 11:28:27 2008 +0000

description:
Fix build problem on systems using GCC 3.x (e.g. NetBSD 3.1). Problem
noted by Bernhard Riedel on #NetBSD IRC channel.

diffstat:

 sysutils/memtestplus/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 7538d3dabe68 -r 68bc398ecac6 sysutils/memtestplus/Makefile
--- a/sysutils/memtestplus/Makefile     Wed Nov 26 10:38:36 2008 +0000
+++ b/sysutils/memtestplus/Makefile     Wed Nov 26 11:28:27 2008 +0000
@@ -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 @@
 
 .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



Home | Main Index | Thread Index | Old Index