2006-05-28 17:50:05 +02:00
|
|
|
# $NetBSD: hacks.mk,v 1.2 2006/05/28 15:50:05 joerg Exp $
|
2006-03-19 21:06:05 +01:00
|
|
|
|
|
|
|
.if !defined(COIN_HACKS_MK)
|
|
|
|
COIN_HACKS_MK= defined
|
|
|
|
|
|
|
|
###
|
|
|
|
### Compiling Coin on NetBSD with optimization causes an internal
|
|
|
|
### compiler error. This is a workaround for PR toolchain/33097.
|
|
|
|
### Not sure if other platforms have the same issue.
|
|
|
|
###
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
|
|
PKG_HACKS+= optimization
|
|
|
|
BUILDLINK_TRANSFORM+= rm:-O[0-9]*
|
|
|
|
.endif
|
|
|
|
|
2006-05-28 17:50:05 +02:00
|
|
|
.if ${OPSYS} == "DragonFly" && ${PKGSRC_COMPILER} == "gcc"
|
|
|
|
#
|
|
|
|
# Workaround an ICE in the stack-smashing protection in GCC 3.4.x.
|
|
|
|
#
|
|
|
|
.if !defined(HAS_PROPOLICE)
|
|
|
|
HAS_PROPOLICE!= ( ${CC} -v 2>&1 | ${GREP} 'propolice' ) 2>/dev/null || echo no
|
|
|
|
MAKEVARS+= HAS_PROPOLICE
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${HAS_PROPOLICE} != "no"
|
|
|
|
CFLAGS+= -fno-stack-protector
|
|
|
|
CXXFLAGS+= -fno-stack-protector
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2006-03-19 21:06:05 +01:00
|
|
|
.endif # COIN_HACKS_MK
|