Use BINUTILS_BOOTSTRAP knob for binutils only

Previously it also disabled building elftoolchain bootstrap tools such as
strip(1).

Differential Revision:	https://reviews.freebsd.org/D1398
Reviewed by:	imp
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2014-12-30 18:42:53 +00:00
parent 149ae064ad
commit 7d612a433e

View File

@ -1440,8 +1440,10 @@ _kgzip= usr.sbin/kgzip
.endif .endif
# If we're given an XAS, don't build binutils. # If we're given an XAS, don't build binutils.
.if ${XAS:M/*} == "" && ${MK_BINUTILS_BOOTSTRAP} != "no" .if ${XAS:M/*} == ""
.if ${MK_BINUTILS_BOOTSTRAP} != "no"
_binutils= gnu/usr.bin/binutils _binutils= gnu/usr.bin/binutils
.endif
.if ${MK_ELFTOOLCHAIN_TOOLS} != "no" .if ${MK_ELFTOOLCHAIN_TOOLS} != "no"
_elftctools= lib/libelftc \ _elftctools= lib/libelftc \
usr.bin/addr2line \ usr.bin/addr2line \