pkgsrc/devel/boost-libs/hacks.mk
jperkin c24ed9c54f The "rename" rule is a published synonym for the "opt" transform rule, however
only the latter is supported by cwrappers.  Change them all to "opt" rules for
consistency and to gain compatibility with cwrappers.
2014-12-15 11:46:34 +00:00

14 lines
396 B
Makefile

# $NetBSD: hacks.mk,v 1.5 2014/12/15 11:46:34 jperkin 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+= opt:-O3:-O1
.endif
.endif # BOOST_LIBS_HACKS_MK