summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authordbj <dbj@NetBSD.org>2021-02-06 16:14:55 +0000
committerdbj <dbj@NetBSD.org>2021-02-06 16:14:55 +0000
commit17f074a6475f5496171443f110de2425c78f6d3d (patch)
treed311ff3fff87822272e9b2d4017e27ee37e9e6ce /tools
parentf5f5eaa688b41ca96c40c61f29eeb20f48d9c809 (diff)
tools: allow MKCROSSGDB to work when not building gcc
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile21
1 files changed, 10 insertions, 11 deletions
diff --git a/tools/Makefile b/tools/Makefile
index a334d379aad..3c1a70ba4ae 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.206 2020/07/28 21:38:15 uwe Exp $
+# $NetBSD: Makefile,v 1.207 2021/02/06 16:14:55 dbj Exp $
.include <bsd.own.mk>
.include <bsd.endian.mk>
@@ -25,26 +25,25 @@
TOOLS_BUILDRUMP?=no
.if ${TOOLCHAIN_MISSING} == "no"
-. if defined(HAVE_GCC) && ${HAVE_GCC} > 0
-TOOLCHAIN_BITS= gmake .WAIT
+. if (defined(HAVE_GCC) && ${HAVE_GCC} > 0) || \
+ (defined(HAVE_GDB) && ${HAVE_GDB} > 0 && ${MKCROSSGDB:Uno} != "no")
+TOOLCHAIN_BITS+= gmake .WAIT
TOOLCHAIN_BITS+= gmp .WAIT
TOOLCHAIN_BITS+= mpfr .WAIT
TOOLCHAIN_BITS+= mpc .WAIT
. endif
-.endif
-.if ${TOOLCHAIN_MISSING} == "no"
TOOLCHAIN_BITS+= binutils .WAIT
-.endif
-.if defined(HAVE_GCC) && ${HAVE_GCC} > 0
-. if ${TOOLCHAIN_MISSING} == "no"
+. if defined(HAVE_GCC) && ${HAVE_GCC} > 0
TOOLCHAIN_BITS+= gcc
-. if ${MKCROSSGDB:Uno} != "no" || make(obj)
+. endif
+
+. if defined(HAVE_GDB) && ${HAVE_GDB} > 0 && ${MKCROSSGDB:Uno} != "no"
TOOLCHAIN_BITS+= gdb
-. endif
-TOOLCHAIN_BITS+= .WAIT
. endif
+
+TOOLCHAIN_BITS+= .WAIT
.endif
.if defined(HAVE_PCC)