summaryrefslogtreecommitdiff
path: root/lang/gcc7
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2017-12-13 10:54:53 +0000
committerjperkin <jperkin@pkgsrc.org>2017-12-13 10:54:53 +0000
commit3a7893066bc5bd4e859a7219c1e55ac4e751a50b (patch)
treea1e00477d0bdc1162a78882acf5255a70b8a0f27 /lang/gcc7
parentab050895ca707636ec8a2ff2fc594e74da48c5bc (diff)
downloadpkgsrc-3a7893066bc5bd4e859a7219c1e55ac4e751a50b.tar.gz
gcc{5,6,7}: Disable fixincludes on SmartOS like gcc49.
Diffstat (limited to 'lang/gcc7')
-rw-r--r--lang/gcc7/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/lang/gcc7/Makefile b/lang/gcc7/Makefile
index dcf37b172f3..9e40022af9e 100644
--- a/lang/gcc7/Makefile
+++ b/lang/gcc7/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2017/11/13 19:36:26 maya Exp $
+# $NetBSD: Makefile,v 1.15 2017/12/13 10:54:53 jperkin Exp $
GCC_PKGNAME= gcc7
.include "version.mk"
@@ -66,6 +66,15 @@ BOOT_LDFLAGS+= ${LDFLAGS:M-Wl,-syslibroot*}
# GCC does not understand this option; remove it, or stage build will fail
BUILDLINK_TRANSFORM+= rm:-stdlib=libc++
+# Disable fixincludes on SmartOS, header changes result in broken includes
+# being generated, see https://github.com/joyent/pkgsrc-legacy/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"
## For graphite support.