2019-11-24 15:04:16 +01:00
|
|
|
# $NetBSD: hacks.mk,v 1.4 2019/11/24 14:04:16 gdt Exp $
|
2016-08-27 22:58:41 +02:00
|
|
|
|
|
|
|
### g++ 4.8 and 5.3 on NetBSD/i386 fails with an internal compiler error
|
|
|
|
### when PCH is used. Be conservative and disable on all MACHINE_ARCH
|
2019-06-08 12:40:52 +02:00
|
|
|
###
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
2016-08-27 22:58:41 +02:00
|
|
|
. include "../../mk/compiler.mk"
|
2019-11-24 15:04:16 +01:00
|
|
|
. if !empty(PKGSRC_COMPILER:Mgcc) && \
|
2016-08-27 22:58:41 +02:00
|
|
|
(!empty(CC_VERSION:Mgcc-4.8.*) || !empty(CC_VERSION:Mgcc-5.*))
|
|
|
|
CONFIGURE_ARGS+= --disable-pch
|
|
|
|
. endif
|
|
|
|
.endif
|