pkgsrc/x11/wxGTK30/hacks.mk
gdt eb1028147b Extend check for gcc to work with distcc/ccache
Instead of checking that PKGSRC_COMPILER is equal to gcc, see if gcc
is contained in it.  Thus, if PKGSRC_COMPILER is "ccache gcc" or
"ccache distcc gcc", the hack will still be applied.  (As a side
effect, I can confirm that the hack is still needed on recent netbsd-7
i386.)
2016-08-20 13:19:21 +00:00

13 lines
470 B
Makefile

# $NetBSD: hacks.mk,v 1.5 2016/08/20 13:19:21 gdt Exp $
### [Mon Dec 14 16:58:00 MET 2015 : bouyer ]
### g++-4.8 on NetBSD/i386 fails with an internal compiler error
### when PCH is used. Be conservative and disable on all MACHINE_ARCH
###
.if ${OPSYS} == "NetBSD"
. include "../../mk/compiler.mk"
. if !empty(PKGSRC_COMPILER:Mgcc) && \
(!empty(CC_VERSION:Mgcc-4.8.*) || !empty(CC_VERSION:Mgcc-5.*))
CONFIGURE_ARGS+= --disable-precomp-headers
. endif
.endif