2014-12-15 12:46:34 +01:00
|
|
|
# $NetBSD: hacks.mk,v 1.5 2014/12/15 11:46:34 jperkin Exp $
|
2012-08-15 20:28:20 +02:00
|
|
|
|
|
|
|
.if !defined(BOOST_LIBS_HACKS_MK)
|
2014-11-07 20:28:38 +01:00
|
|
|
BOOST_LIBS_HACKS_MK= defined
|
2012-08-15 20:28:20 +02:00
|
|
|
|
|
|
|
.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
|
2014-12-15 12:46:34 +01:00
|
|
|
BUILDLINK_TRANSFORM+= opt:-O3:-O1
|
2012-08-15 20:28:20 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.endif # BOOST_LIBS_HACKS_MK
|