1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

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
This commit is contained in:
John Baldwin 2019-03-06 20:13:02 +00:00
parent bfdf8aa9f7
commit e91609a771
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=344854
4 changed files with 12 additions and 18 deletions

View File

@ -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

View File

@ -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

View File

@ -187,12 +187,6 @@ The resulting system cannot build programs from source.
.Pp
This is a default setting on
arm64/aarch64 and riscv/riscv64.
When set, it enforces these options:
.Pp
.Bl -item -compact
.It
.Va WITHOUT_GDB
.El
.It Va WITH_BINUTILS
Set to build and install GNU
.Xr as 1 ,

View File

@ -430,10 +430,6 @@ MK_${var}:= no
MK_LLVM_LIBUNWIND:= no
.endif
.if ${MK_BINUTILS} == "no"
MK_GDB:= no
.endif
.if ${MK_CAPSICUM} == "no"
MK_CASPER:= no
.endif