summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorapb <apb@pkgsrc.org>2012-09-20 08:38:40 +0000
committerapb <apb@pkgsrc.org>2012-09-20 08:38:40 +0000
commit1a61e3c6a2521943ad1d82c3e9c9a903f67b0ce6 (patch)
treefca9889e02c7c02a480d99dd7e44be0a6139db86 /x11
parent57d0741ddeab34b073cccaf7b995202295627d7b (diff)
downloadpkgsrc-1a61e3c6a2521943ad1d82c3e9c9a903f67b0ce6.tar.gz
Workaround for PR 46978:
g++-4.5.3 and 4.5.4 on NetBSD/i386 fails with an internal compiler error when building gui/painting/qdrawhelper_mmx.cpp.
Diffstat (limited to 'x11')
-rw-r--r--x11/qt4-libs/hacks.mk18
1 files changed, 17 insertions, 1 deletions
diff --git a/x11/qt4-libs/hacks.mk b/x11/qt4-libs/hacks.mk
index e58226eaccb..6147891f1c6 100644
--- a/x11/qt4-libs/hacks.mk
+++ b/x11/qt4-libs/hacks.mk
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.1 2011/08/03 16:38:31 tron Exp $
+# $NetBSD: hacks.mk,v 1.2 2012/09/20 08:38:40 apb Exp $
### [Wed Aug 3 12:18:16 UTC 2011 : tron]
### If "qmake" is build with "-O2" or better with "g++" under Mac OS X the
@@ -10,3 +10,19 @@ PKG_HACKS+= macosx-codegen
BUILDLINK_TRANSFORM+= rename:-O[0-9]*:-O1
. endif
.endif
+
+### [Wed Sep 19 09:24:11 UTC 2012 : apb]
+### g++-4.5.3 and 4.5.4 on NetBSD/i386 fails with an internal compiler error
+### when building gui/painting/qdrawhelper_mmx.cpp.
+### Building with -O1 instead of -O2 seems to work around the problem.
+.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "i386"
+. include "../../mk/compiler.mk"
+. if !empty(CC_VERSION:Mgcc-4.5.*)
+PKG_HACKS+= pr46978
+SUBST_CLASSES+= pr46978
+SUBST_STAGE.pr46978= post-configure
+SUBST_MESSAGE.pr46978= Working around optimizer bug (NetBSD PR 46978)
+SUBST_FILES.pr46978= src/gui/Makefile
+SUBST_SED.pr46978= -e '/^CXXFLAGS/s/-O2/-O1/'
+. endif
+.endif