Thu May 27 20:29:24 2021 UTC ()
mips64 only works with gcc-10


(christos)
diff -r1.1252 -r1.1253 src/share/mk/bsd.own.mk

cvs diff -r1.1252 -r1.1253 src/share/mk/bsd.own.mk (expand / switch to unified diff)

--- src/share/mk/bsd.own.mk 2021/05/27 17:41:28 1.1252
+++ src/share/mk/bsd.own.mk 2021/05/27 20:29:24 1.1253
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: bsd.own.mk,v 1.1252 2021/05/27 17:41:28 christos Exp $ 1# $NetBSD: bsd.own.mk,v 1.1253 2021/05/27 20:29:24 christos Exp $
2 2
3# This needs to be before bsd.init.mk 3# This needs to be before bsd.init.mk
4.if defined(BSD_MK_COMPAT_FILE) 4.if defined(BSD_MK_COMPAT_FILE)
5.include <${BSD_MK_COMPAT_FILE}> 5.include <${BSD_MK_COMPAT_FILE}>
6.endif 6.endif
7 7
8.if !defined(_BSD_OWN_MK_) 8.if !defined(_BSD_OWN_MK_)
9_BSD_OWN_MK_=1 9_BSD_OWN_MK_=1
10 10
11MAKECONF?= /etc/mk.conf 11MAKECONF?= /etc/mk.conf
12.-include "${MAKECONF}" 12.-include "${MAKECONF}"
13 13
14# 14#
@@ -68,26 +68,27 @@ TOOLCHAIN_MISSING?= no @@ -68,26 +68,27 @@ TOOLCHAIN_MISSING?= no
68# GCC Using platforms. 68# GCC Using platforms.
69# 69#
70.if ${MKGCC:Uyes} != "no" 70.if ${MKGCC:Uyes} != "no"
71 71
72# 72#
73# What GCC is used? 73# What GCC is used?
74# 74#
75.if ${MACHINE} == "alpha" || \ 75.if ${MACHINE} == "alpha" || \
76 ${MACHINE} == "hppa" || \ 76 ${MACHINE} == "hppa" || \
77 ${MACHINE} == "ia64" || \ 77 ${MACHINE} == "ia64" || \
78 ${MACHINE} == "sparc" || \ 78 ${MACHINE} == "sparc" || \
79 ${MACHINE} == "sparc64" || \ 79 ${MACHINE} == "sparc64" || \
80 ${MACHINE} == "vax" || \ 80 ${MACHINE} == "vax" || \
 81 ${MACHINE_MIPS64} || \
81 ${MACHINE_ARCH} == "i386" || \ 82 ${MACHINE_ARCH} == "i386" || \
82 ${MACHINE_ARCH} == "x86_64" || \ 83 ${MACHINE_ARCH} == "x86_64" || \
83 ${MACHINE_CPU} == "aarch64" || \ 84 ${MACHINE_CPU} == "aarch64" || \
84 ${MACHINE_CPU} == "mips" || \ 85 ${MACHINE_CPU} == "mips" || \
85 ${MACHINE_CPU} == "powerpc" || \ 86 ${MACHINE_CPU} == "powerpc" || \
86 ${MACHINE_CPU} == "riscv" 87 ${MACHINE_CPU} == "riscv"
87HAVE_GCC?= 10 88HAVE_GCC?= 10
88.else 89.else
89HAVE_GCC?= 9 90HAVE_GCC?= 9
90.endif 91.endif
91 92
92# 93#
93# Platforms that can't run a modern GCC natively 94# Platforms that can't run a modern GCC natively