Author: marius
Date: Sun Jul 19 00:38:19 2015
New Revision: 285684
URL: https://svnweb.freebsd.org/changeset/base/285684

Log:
  - 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

Modified:
  head/gnu/lib/Makefile
  head/gnu/usr.bin/Makefile

Modified: head/gnu/lib/Makefile
==============================================================================
--- head/gnu/lib/Makefile       Sat Jul 18 22:47:46 2015        (r285683)
+++ head/gnu/lib/Makefile       Sun Jul 19 00:38:19 2015        (r285684)
@@ -16,7 +16,7 @@ SUBDIR+= libssp
 SUBDIR+= tests
 .endif
 
-.if ${MK_GDB} != "no"
+.if ${MK_BINUTILS} != "no" && ${MK_GDB} != "no"
 SUBDIR+=       libreadline
 .endif
 

Modified: head/gnu/usr.bin/Makefile
==============================================================================
--- head/gnu/usr.bin/Makefile   Sat Jul 18 22:47:46 2015        (r285683)
+++ head/gnu/usr.bin/Makefile   Sun Jul 19 00:38:19 2015        (r285684)
@@ -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=
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to