blob: 0e2d34ce2edb9c07cf9e568ab7354ae1273b77e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# $NetBSD: hacks.mk,v 1.4 2006/03/29 21:44:41 ghen Exp $
.if !defined(BACULA_HACKS_MK)
BACULA_HACKS_MK= #defined
### gcc 4.0* has been reported to produce bad code on amd64
### with optimizations (-O2) turned on (causes segfaults).
###
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64"
. include "../../mk/compiler.mk"
. if !empty(CC_VERSION:Mgcc-4.0*)
PKG_HACKS+= dontoptimze
BUILDLINK_TRANSFORM+= rm:-O[0-9]*
. endif
. endif
.endif
|