summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2015-07-19 00:38:19 +0000
committermarius <marius@FreeBSD.org>2015-07-19 00:38:19 +0000
commitb0e42f970b67a44933a52ec7916aded034a86b2c (patch)
treef58d716fa70554160e2b3487eeb2ca8df8499dfa /gnu
parent0d030c5deb07b154496e239e72294c916f5b9860 (diff)
downloadFreeBSD-src-b0e42f970b67a44933a52ec7916aded034a86b2c.zip
FreeBSD-src-b0e42f970b67a44933a52ec7916aded034a86b2c.tar.gz
- Record dependencies of gdb/gdbtui/kgdb on binutils/lib{bfd,iberty,opcodes},
fixing parallel builds. - Don't build gdb/gdbtui/kgdb or libreadline when MK_BINUTILS is "no" for obvious reasons. MFC after: 3 days
Diffstat (limited to 'gnu')
-rw-r--r--gnu/lib/Makefile2
-rw-r--r--gnu/usr.bin/Makefile9
2 files changed, 7 insertions, 4 deletions
diff --git a/gnu/lib/Makefile b/gnu/lib/Makefile
index 796cefc..4fff36a 100644
--- a/gnu/lib/Makefile
+++ b/gnu/lib/Makefile
@@ -16,7 +16,7 @@ SUBDIR+= libssp
SUBDIR+= tests
.endif
-.if ${MK_GDB} != "no"
+.if ${MK_BINUTILS} != "no" && ${MK_GDB} != "no"
SUBDIR+= libreadline
.endif
diff --git a/gnu/usr.bin/Makefile b/gnu/usr.bin/Makefile
index 470b612..518000d 100644
--- a/gnu/usr.bin/Makefile
+++ b/gnu/usr.bin/Makefile
@@ -16,6 +16,8 @@ SUBDIR= ${_binutils} \
sdiff \
${_tests}
+SUBDIR_DEPEND_gdb= ${_binutils}
+
.if ${MK_CXX} != "no"
.if ${MK_GCC} != "no"
_gperf= gperf
@@ -39,13 +41,14 @@ _tests= tests
.if ${MK_BINUTILS} != "no"
_binutils= binutils
+.if ${MK_GDB} != "no"
+_gdb= gdb
+.endif
.endif
+
.if ${MK_GCC} != "no"
_cc= cc
.endif
-.if ${MK_GDB} != "no"
-_gdb= gdb
-.endif
SUBDIR_PARALLEL=
OpenPOWER on IntegriCloud