summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editors/codeblocks/hacks.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/editors/codeblocks/hacks.mk b/editors/codeblocks/hacks.mk
new file mode 100644
index 00000000000..12b035356c8
--- /dev/null
+++ b/editors/codeblocks/hacks.mk
@@ -0,0 +1,12 @@
+# $NetBSD: hacks.mk,v 1.1 2016/08/27 20:58:41 joerg Exp $
+
+### g++ 4.8 and 5.3 on NetBSD/i386 fails with an internal compiler error
+### when PCH is used. Be conservative and disable on all MACHINE_ARCH
+###
+.if ${OPSYS} == "NetBSD"
+. include "../../mk/compiler.mk"
+. if ${PKGSRC_COMPILER} == "gcc" && \
+ (!empty(CC_VERSION:Mgcc-4.8.*) || !empty(CC_VERSION:Mgcc-5.*))
+CONFIGURE_ARGS+= --disable-pch
+. endif
+.endif