Skip to content

Commit

Permalink
cheribsd: Use in-tree strip for bootstrap toolchain over host one
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jrtc27 committed Sep 12, 2024
1 parent 471043a commit 3d5d136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pycheribuild/projects/cross/cheribsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1527,8 +1527,8 @@ def add_cross_build_options(self) -> None:
if self.use_bootstrapped_toolchain:
assert "XCC" not in self.make_args.env_vars
# We have to provide the default X* values so that Makefile.inc1 does not disable MK_CLANG_BOOTSTRAP and
# doesn't try to cross-compile using the host compilers
self.make_args.set_env(XCC="cc", XCXX="c++", XCPP="cpp")
# doesn't try to use the host toolchain for cross-building
self.make_args.set_env(XCC="cc", XCXX="c++", XCPP="cpp", XSTRIPBIN="strip")
# won't work on a case-insensitive file system and is also really slow (and missing tools on linux)
self.make_args.set_with_options(MAN=False)
# links from /usr/bin/mail to /usr/bin/Mail won't work on case-insensitve fs
Expand Down

0 comments on commit 3d5d136

Please sign in to comment.