summaryrefslogtreecommitdiff
path: root/lang/gcc49
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2016-01-21 11:53:06 +0000
committerjperkin <jperkin@pkgsrc.org>2016-01-21 11:53:06 +0000
commitdde7312028a3664aba37429181d21800623b5abb (patch)
tree19635c9bb80565ee23c1619e838aa4be851d7aab /lang/gcc49
parentca2aa14526a8caacf117e26e14e9e76ea0795148 (diff)
downloadpkgsrc-dde7312028a3664aba37429181d21800623b5abb.tar.gz
Don't use GCC fixincludes on SmartOS, header changes mean that broken includes
are generated and various features end up disabled. Bump PKGREVISION.
Diffstat (limited to 'lang/gcc49')
-rw-r--r--lang/gcc49/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/lang/gcc49/Makefile b/lang/gcc49/Makefile
index 8ead3f32123..1272e17cc59 100644
--- a/lang/gcc49/Makefile
+++ b/lang/gcc49/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2015/10/20 10:26:40 jperkin Exp $
+# $NetBSD: Makefile,v 1.9 2016/01/21 11:53:06 jperkin Exp $
GCC_PKGNAME= gcc49
.include "version.mk"
@@ -9,7 +9,7 @@ PKGNAME= ${GCC_PKGNAME}-${GCC49_DIST_VERSION}
## When bumping the PKGREVISION of this package the PKGREVISION of
## lang/gcc49-libs needs to be bump to be at least 1 more than the
## PKGREVISION of this package!
-#PKGREVISION= 1
+PKGREVISION= 1
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC49_DIST_VERSION}/}
@@ -107,6 +107,15 @@ CONFIGURE_ARGS+= --disable-multilib
CONFIGURE_ARGS+= --with-arch=i486 --with-tune=i486
.endif
+# Disable fixincludes on SmartOS, header changes result in broken includes
+# being generated, see https://github.com/joyent/pkgsrc/issues/270
+.if ${OS_VARIANT} == "SmartOS"
+SUBST_CLASSES+= fixinc
+SUBST_STAGE.fixinc= pre-configure
+SUBST_FILES.fixinc= gcc/Makefile.in
+SUBST_SED.fixinc= -e "s,\./fixinc.sh,-c true,"
+.endif
+
.include "options.mk"
# ${WRKSRC}/fixincludes/ looks for sed and compiles the path to sed into