Add patch to fix compilation of boost with compilers not in path (#29718)

Co-authored-by: Mikael Simberg <mikael.simberg@iki.if>
This commit is contained in:
Mikael Simberg 2022-03-30 09:14:03 +02:00 committed by GitHub
parent 0182e39d44
commit e58ac0705d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/bootstrap.sh b/bootstrap.sh
index 654801e21f..3331483aa5 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -226,7 +226,7 @@ rm -f config.log
if test "x$BJAM" = x; then
$ECHO "Building B2 engine.."
pwd=`pwd`
- CXX= CXXFLAGS= "$my_dir/tools/build/src/engine/build.sh" ${TOOLSET}
+ CXXFLAGS= "$my_dir/tools/build/src/engine/build.sh" ${TOOLSET} --cxx="$CXX"
if [ $? -ne 0 ]; then
echo
echo "Failed to build B2 build engine"

View File

@ -301,6 +301,9 @@ def libs(self):
# and https://github.com/spack/spack/pull/21408
patch("bootstrap-toolset.patch", when="@1.75")
# Fix compiler used for building bjam during bootstrap
patch("bootstrap-compiler.patch", when="@1.76:")
# Allow building context asm sources with GCC on Darwin
# See https://github.com/spack/spack/pull/24889
# and https://github.com/boostorg/context/issues/177