Thu Aug 25 13:25:19 2011 UTC ()
Pullup ticket #3502 - requested by taca
x11/qt4-libs build fix

Revisions pulled up:
- x11/qt4-libs/hacks.mk                                         1.1

---
   Module Name:	pkgsrc
   Committed By:	tron
   Date:		Wed Aug  3 16:38:31 UTC 2011

   Added Files:
   	pkgsrc/x11/qt4-libs: hacks.mk

   Log Message:
   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.


(sbd)
diff -r0 -r1.1.2.2 pkgsrc/x11/qt4-libs/hacks.mk

File Added: pkgsrc/x11/qt4-libs/hacks.mk
# $NetBSD: hacks.mk,v 1.1.2.2 2011/08/25 13:25:19 sbd 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