pkgsrc/x11/qt4-libs/hacks.mk
tron ca97f22ec0 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.
2011-08-03 16:38:31 +00:00

12 lines
427 B
Makefile

# $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