Wed Aug 3 16:38:31 2011 UTC ()
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.


(tron)
diff -r0 -r1.1 pkgsrc/x11/qt4-libs/hacks.mk

File Added: pkgsrc/x11/qt4-libs/hacks.mk
# $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