Skip to content

Commit 3d5d136

Browse files
committed
cheribsd: Use in-tree strip for bootstrap toolchain over host one
If the host one is llvm-strip this is less of an issue, but when binutils is used we end up trying to use /usr/bin/strip for target binaries.
1 parent 471043a commit 3d5d136

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pycheribuild/projects/cross/cheribsd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1527,8 +1527,8 @@ def add_cross_build_options(self) -> None:
15271527
if self.use_bootstrapped_toolchain:
15281528
assert "XCC" not in self.make_args.env_vars
15291529
# We have to provide the default X* values so that Makefile.inc1 does not disable MK_CLANG_BOOTSTRAP and
1530-
# doesn't try to cross-compile using the host compilers
1531-
self.make_args.set_env(XCC="cc", XCXX="c++", XCPP="cpp")
1530+
# doesn't try to use the host toolchain for cross-building
1531+
self.make_args.set_env(XCC="cc", XCXX="c++", XCPP="cpp", XSTRIPBIN="strip")
15321532
# won't work on a case-insensitive file system and is also really slow (and missing tools on linux)
15331533
self.make_args.set_with_options(MAN=False)
15341534
# links from /usr/bin/mail to /usr/bin/Mail won't work on case-insensitve fs

0 commit comments

Comments
 (0)