summaryrefslogtreecommitdiff
path: root/devel/nasm
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2005-03-08 18:51:06 +0000
committerxtraeme <xtraeme@pkgsrc.org>2005-03-08 18:51:06 +0000
commite07a21923dbcc3e9acb8e3d63fb1149176745857 (patch)
treeefe532c6164eb234333ab3d6d9492937716ac26b /devel/nasm
parent54d16e4557d5d354735a0dc60ccaefe5e0c16f56 (diff)
downloadpkgsrc-e07a21923dbcc3e9acb8e3d63fb1149176745857.tar.gz
Don't use -std=c99 when CC_VERSION < gcc-3 (because it's an unimplemented
option), this should fix PR pkg/29533.
Diffstat (limited to 'devel/nasm')
-rw-r--r--devel/nasm/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/devel/nasm/Makefile b/devel/nasm/Makefile
index c4d10270edc..f6edac25bab 100644
--- a/devel/nasm/Makefile
+++ b/devel/nasm/Makefile
@@ -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 @@ MAKE_ENV+= PERL5="${PERL5}" \
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"