summaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2020-10-12 10:42:28 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2020-10-12 10:42:28 +0000
commite5ccad508ba818198f29777de71a0cb78786d60d (patch)
tree6a52313cbd60a9e155ccb5214f1828796732af49 /Makefile.inc1
parent5ce117c698bce69808f214781fe03a2c0f451d9f (diff)
downloadsrc-test2-e5ccad508ba818198f29777de71a0cb78786d60d.tar.gz
src-test2-e5ccad508ba818198f29777de71a0cb78786d60d.zip
Fix build with -DBOOTSTRAP_ALL_TOOLS
sbin/sysctl can no longer be bootstrapped on FreeBSD 12 after r366465, so create a symlink to the host tool instead of trying to build it.
Notes
Notes: svn path=/head/; revision=366635
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc15
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index c4a956d2abd6..fbeb0d23d12e 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -2330,7 +2330,10 @@ _basic_bootstrap_tools+=usr.bin/ldd
.endif
# sysctl/chflags are required for installkernel:
.if !defined(CROSSBUILD_HOST)
-_basic_bootstrap_tools+=sbin/sysctl bin/chflags
+_basic_bootstrap_tools+=bin/chflags
+# Note: sysctl does not bootstrap on FreeBSD < 13 anymore, but that doesn't
+# matter since we don't need any of the new features for the build.
+_bootstrap_tools_links+=sysctl
.else
# When building on non-FreeBSD, install a fake chflags instead since the
# version from the source tree cannot work. We also don't need sysctl since we