pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/nasm Don't use -std=c99 when CC_VERSION < gcc-3 ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/1febc508e8c6
branches: trunk
changeset: 490403:1febc508e8c6
user: xtraeme <xtraeme%pkgsrc.org@localhost>
date: Tue Mar 08 18:51:06 2005 +0000
description:
Don't use -std=c99 when CC_VERSION < gcc-3 (because it's an unimplemented
option), this should fix PR pkg/29533.
diffstat:
devel/nasm/Makefile | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 97bb077a32c9 -r 1febc508e8c6 devel/nasm/Makefile
--- a/devel/nasm/Makefile Tue Mar 08 18:35:04 2005 +0000
+++ b/devel/nasm/Makefile Tue Mar 08 18:51:06 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2005/03/05 09:28:14 grant Exp $
+# $NetBSD: Makefile,v 1.18 2005/03/08 18:51:06 xtraeme Exp $
DISTNAME= nasm-0.98.39
CATEGORIES= devel lang
@@ -27,4 +27,14 @@
INSTALLATION_DIRS= bin info man/man1 share/doc/html
+.include "../../mk/compiler.mk"
+
+.if !empty(CC_VERSION:Mgcc-2*)
+SUBST_CLASSES+= c99
+SUBST_STAGE.c99= pre-configure
+SUBST_FILES.c99= configure
+SUBST_SED.c99= -e "s,\-std=c99,,g"
+SUBST_MESSAGE.c99= "Fixing configure script."
+.endif
+
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index