3 ### [Sat Sep 22 11:21:06 UTC 2012 : apb]
4 ### g++-4.5.3 and 4.5.4 on NetBSD/i386 fails with an internal compiler error
5 ### when building gui/painting/qdrawhelper_mmx.cpp.
6 ### Building with -O1 instead of -O2 seems to work around the problem.
7 .if
${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "i386"
8 .
include "../../mk/compiler.mk"
9 . if
!empty
(CC_VERSION
:Mgcc-4.5.
*)
11 SUBST_CLASSES
+= pr46978
12 SUBST_STAGE.pr46978
= post-configure
13 SUBST_MESSAGE.pr46978
= Working around optimizer bug
(NetBSD PR
46978)
14 SUBST_FILES.pr46978
= src
/gui
/Makefile
15 SUBST_SED.pr46978
= -e
'/^CXXFLAGS/s/-O2/-O1/'