summaryrefslogtreecommitdiff
path: root/devel/boost-libs/hacks.mk
blob: c3de68ef119c3c676919155078ca757060d56c8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# $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