pkgsrc/devel/boost-libs/hacks.mk
jdc a9413a2af3 Move the sparc64/gcc4 hack from Makefile to hacks.mk, where it belongs.
Unlimit the stack size, so that we can compile on NetBSD/sparc64.
2012-08-15 18:28:20 +00:00

14 lines
399 B
Makefile

# $NetBSD: hacks.mk,v 1.3 2012/08/15 18:28:21 jdc Exp $
.if !defined(BOOST_LIBS_HACKS_MK)
BOOST_LIBS_HACKS_MK= defined
.include "../../mk/compiler.mk"
# gcc 4 on sparc64 catches an illegal instruction when compiling graphml.cpp
.if ${MACHINE_ARCH} == "sparc64" && !empty(CC_VERSION:Mgcc-4*)
PKG_HACKS+= optimisation
BUILDLINK_TRANSFORM+= rename:-O3:-O1
.endif
.endif # BOOST_LIBS_HACKS_MK