summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2020-05-30 19:16:33 +0000
committerEd Maste <emaste@FreeBSD.org>2020-05-30 19:16:33 +0000
commitaf097a7d500a9b798bd90bf978d95ff15c484dac (patch)
treea40e342f42a9632375abafba9de711a8ab8f1627 /gnu/usr.bin
parentb0763b5ddd25e78c31ed1bea0c8ee4e6c19dc5bd (diff)
downloadsrc-test2-af097a7d500a9b798bd90bf978d95ff15c484dac.tar.gz
src-test2-af097a7d500a9b798bd90bf978d95ff15c484dac.zip
binutils: build as with BINUTILS || BINUTILS_BOOTSTRAP
Previously we descended into as only if MK_BINUTILS was true, including during the bootstrap tool phase. BINUTILS is now disabled by default on all archs, and we failed to build it during amd64 bootstrap. Descend into as if either BINUTILS or BINUTILS_BOOTSTRAP is enabled. This is not quite correct: we should either have the test also depend on BOOTSTRAPPING, or set BINUTILS to the value of BINUTILS_BOOTSTRAP during the bootstrap phase. However, this simple change fixes the build and has been tested, and binutils will be removed completely in the near future.
Notes
Notes: svn path=/head/; revision=361656
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/binutils/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/usr.bin/binutils/Makefile b/gnu/usr.bin/binutils/Makefile
index 558fd627bedf..7eacb9851047 100644
--- a/gnu/usr.bin/binutils/Makefile
+++ b/gnu/usr.bin/binutils/Makefile
@@ -11,8 +11,9 @@ SUBDIR.${MK_BINUTILS}+= doc
# GNU as is used on x86 only, for a few files that cannot be assembled by
# Clang IAS. Other archs either use Clang IAS for every assembly file, or
# use external toolchain.
-.if ${TARGET} == "amd64" || ${TARGET} == "i386"
-SUBDIR.${MK_BINUTILS}+= as
+.if (${TARGET} == "amd64" || ${TARGET} == "i386") && \
+ (${MK_BINUTILS} != "no" || ${MK_BINUTILS_BOOTSTRAP} != "no")
+SUBDIR+= as
.endif
SUBDIR_DEPEND_as=libbfd libiberty libopcodes