--- bootstrap.sh.orig 2024-12-05 08:53:27.000000000 +0800 +++ bootstrap.sh 2025-01-17 13:16:35.000000000 +0800 @@ -226,7 +226,7 @@ if test "x$BJAM" = x; then $ECHO "Building B2 engine.." pwd=`pwd` - CXX= CXXFLAGS= "$my_dir/tools/build/src/engine/build.sh" ${TOOLSET} + CXX= CXXFLAGS= "$my_dir/tools/build/src/engine/build.sh" --cxxflags="-isystem@PREFIX@/include/LegacySupport -Wl,-lMacportsLegacySupport" ${TOOLSET} if [ $? -ne 0 ]; then echo echo "Failed to build B2 build engine"