2006-03-29 23:44:41 +02:00
|
|
|
# $NetBSD: hacks.mk,v 1.4 2006/03/29 21:44:41 ghen Exp $
|
2005-11-22 19:35:25 +01:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
.if !defined(BACULA_HACKS_MK)
|
2005-11-22 19:35:25 +01:00
|
|
|
BACULA_HACKS_MK= #defined
|
|
|
|
|
|
|
|
### gcc 4.0* has been reported to produce bad code on amd64
|
|
|
|
### with optimizations (-O2) turned on (causes segfaults).
|
|
|
|
###
|
2006-03-29 23:44:41 +02:00
|
|
|
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64"
|
2005-12-09 20:34:36 +01:00
|
|
|
. include "../../mk/compiler.mk"
|
|
|
|
. if !empty(CC_VERSION:Mgcc-4.0*)
|
2005-11-22 19:35:25 +01:00
|
|
|
PKG_HACKS+= dontoptimze
|
|
|
|
BUILDLINK_TRANSFORM+= rm:-O[0-9]*
|
2005-12-09 20:34:36 +01:00
|
|
|
. endif
|
|
|
|
. endif
|
2005-11-22 19:35:25 +01:00
|
|
|
.endif
|