summaryrefslogtreecommitdiff
path: root/lang/gcc5
diff options
context:
space:
mode:
Diffstat (limited to 'lang/gcc5')
-rw-r--r--lang/gcc5/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/lang/gcc5/Makefile b/lang/gcc5/Makefile
index d58860166ec..e96d8631efb 100644
--- a/lang/gcc5/Makefile
+++ b/lang/gcc5/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2017/11/13 19:36:26 maya Exp $
+# $NetBSD: Makefile,v 1.26 2017/12/13 10:54:53 jperkin Exp $
GCC_PKGNAME= gcc5
.include "version.mk"
@@ -65,6 +65,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.