summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2011-08-03 16:38:31 +0000
committertron <tron@pkgsrc.org>2011-08-03 16:38:31 +0000
commit90b373c6aead922a6c708ee698ce82719314ef6b (patch)
treef286d9375ca02d5b1d1971f1a277f7325bc17e38 /x11
parentcc934827c004cb7d28ff938aa65c16589d0ffbae (diff)
downloadpkgsrc-90b373c6aead922a6c708ee698ce82719314ef6b.tar.gz
Compile this package with "-O1" under Mac OS X if GCC is used. The generated
"qmake" binary no longer crashes and the build actually succeeds. This fixes PR pkg/44716 by Richard Hansen who found out that this is a compiler problem in the first place.
Diffstat (limited to 'x11')
-rw-r--r--x11/qt4-libs/hacks.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/x11/qt4-libs/hacks.mk b/x11/qt4-libs/hacks.mk
new file mode 100644
index 00000000000..e58226eaccb
--- /dev/null
+++ b/x11/qt4-libs/hacks.mk
@@ -0,0 +1,12 @@
+# $NetBSD: hacks.mk,v 1.1 2011/08/03 16:38:31 tron 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
+### resulting binary will crash. This fixes PR pkg/44716 by Richard Hansen.
+.if ${OPSYS} == "Darwin"
+. include "../../mk/compiler.mk"
+. if !empty(CC_VERSION:Mgcc*)
+PKG_HACKS+= macosx-codegen
+BUILDLINK_TRANSFORM+= rename:-O[0-9]*:-O1
+. endif
+.endif