summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2019-03-06 20:13:02 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2019-03-06 20:13:02 +0000
commite91609a771dd0fbbe0df5ae4ccbb4df3e18c62c5 (patch)
treee2fd74a191f769c01371f736e3bf6fa6f2ec3f56 /gnu
parentbfdf8aa9f7baa5371cd0bad60d3f367023ac797b (diff)
downloadsrc-test2-e91609a771dd0fbbe0df5ae4ccbb4df3e18c62c5.tar.gz
src-test2-e91609a771dd0fbbe0df5ae4ccbb4df3e18c62c5.zip
Divorce MK_GDB from MK_BINUTILS.
This permits legacy GDB to still be built and installed if WITHOUT_BINUTILS is set (e.g. if base/binutils is installed). Reviewed by: emaste MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D19480
Notes
Notes: svn path=/head/; revision=344854
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/Makefile5
-rw-r--r--gnu/usr.bin/binutils/Makefile15
2 files changed, 12 insertions, 8 deletions
diff --git a/gnu/usr.bin/Makefile b/gnu/usr.bin/Makefile
index a3e749508e68..8a9b0200a8a1 100644
--- a/gnu/usr.bin/Makefile
+++ b/gnu/usr.bin/Makefile
@@ -7,7 +7,10 @@
SUBDIR.${MK_GCC}+= gperf
.endif
-SUBDIR.${MK_BINUTILS}+= binutils
+.if ${MK_GDB} != "no" || ${MK_BINUTILS} != "no"
+SUBDIR+= binutils
+.endif
+
SUBDIR.${MK_DIALOG}+= dialog
SUBDIR.${MK_GCC}+= cc
SUBDIR.${MK_GNU_DIFF}+= diff3
diff --git a/gnu/usr.bin/binutils/Makefile b/gnu/usr.bin/binutils/Makefile
index 191a8ad3d5c1..619454250ed8 100644
--- a/gnu/usr.bin/binutils/Makefile
+++ b/gnu/usr.bin/binutils/Makefile
@@ -2,18 +2,19 @@
.include <src.opts.mk>
-SUBDIR= doc\
- libiberty \
+SUBDIR= libiberty \
libbfd \
- libopcodes \
- libbinutils \
- as \
- objdump
+ libopcodes
+
+SUBDIR.${MK_BINUTILS}+= doc
+SUBDIR.${MK_BINUTILS}+= libbinutils
+SUBDIR.${MK_BINUTILS}+= as
+SUBDIR.${MK_BINUTILS}+= objdump
# When we use ld.lld as /usr/bin/ld, do not install the non-ifunc-capable
# GNU binutils 2.17.50 ld.
.if ${MK_LLD_IS_LD} == "no"
-SUBDIR+=ld
+SUBDIR.${MK_BINUTILS}+=ld
.endif
SUBDIR_DEPEND_libbinutils=libbfd # for bfdver.h