summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbouyer <bouyer>2015-12-14 16:49:22 +0000
committerbouyer <bouyer>2015-12-14 16:49:22 +0000
commit33a93dca3cac3fcf12a484a821dccd416be57db2 (patch)
tree2a53aeb352e67967d41421966630ff2c9b12c81c
parent81681087b5e70d42c6ab199b4b2dc2ddf7cb6fe9 (diff)
downloadpkgsrc-33a93dca3cac3fcf12a484a821dccd416be57db2.tar.gz
Disable precomp-headers on NetBSD with gcc 4.8 (i.e. NetBSD 7.0)
to avoid cc1plus 100% CPU spin. Should fix PR pkg/50287 and workaround PR port-i386/50553
-rw-r--r--x11/wxGTK30/hacks.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/x11/wxGTK30/hacks.mk b/x11/wxGTK30/hacks.mk
new file mode 100644
index 00000000000..549029a7cf9
--- /dev/null
+++ b/x11/wxGTK30/hacks.mk
@@ -0,0 +1,12 @@
+# $NetBSD: hacks.mk,v 1.1 2015/12/14 16:49:22 bouyer Exp $
+
+### [Mon Dec 14 16:58:00 MET 2015 : bouyer ]
+### g++-4.5.3 and 4.5.4 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 !empty(CC_VERSION:Mgcc-4.8.*)
+CONFIGURE_ARGS+= --disable-precomp-headers
+.endif
+.endif