Sat Nov 23 19:39:30 2019 UTC ()
editors/codeblocks: Check for compiling with gcc correctly


(gdt)
diff -r1.2 -r1.3 pkgsrc/editors/codeblocks/hacks.mk

cvs diff -r1.2 -r1.3 pkgsrc/editors/codeblocks/hacks.mk (expand / switch to unified diff)

--- pkgsrc/editors/codeblocks/hacks.mk 2019/06/08 10:40:53 1.2
+++ pkgsrc/editors/codeblocks/hacks.mk 2019/11/23 19:39:30 1.3
@@ -1,12 +1,12 @@ @@ -1,12 +1,12 @@
1# $NetBSD: hacks.mk,v 1.2 2019/06/08 10:40:53 rillig Exp $ 1# $NetBSD: hacks.mk,v 1.3 2019/11/23 19:39:30 gdt Exp $
2 2
3### g++ 4.8 and 5.3 on NetBSD/i386 fails with an internal compiler error 3### g++ 4.8 and 5.3 on NetBSD/i386 fails with an internal compiler error
4### when PCH is used. Be conservative and disable on all MACHINE_ARCH 4### when PCH is used. Be conservative and disable on all MACHINE_ARCH
5### 5###
6.if ${OPSYS} == "NetBSD" 6.if ${OPSYS} == "NetBSD"
7. include "../../mk/compiler.mk" 7. include "../../mk/compiler.mk"
8. if ${PKGSRC_COMPILER} == "gcc" && \ 8. if !empty(${PKGSRC_COMPILER:Mgcc}) && \
9 (!empty(CC_VERSION:Mgcc-4.8.*) || !empty(CC_VERSION:Mgcc-5.*)) 9 (!empty(CC_VERSION:Mgcc-4.8.*) || !empty(CC_VERSION:Mgcc-5.*))
10CONFIGURE_ARGS+= --disable-pch 10CONFIGURE_ARGS+= --disable-pch
11. endif 11. endif
12.endif 12.endif