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
commit1e2dcf549d3f960dac940645f6bed20e03f6089c (patch)
treef286d9375ca02d5b1d1971f1a277f7325bc17e38 /x11
parente2999b19483300dca1081a0b973f6c8f0cfd3e3b (diff)
downloadpkgsrc-1e2dcf549d3f960dac940645f6bed20e03f6089c.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