From 464bd7adaff0eccd14008e23c319d4bbf56df3d2 Mon Sep 17 00:00:00 2001
From: Marek Waszkiewicz <mwaszkiewicz@anaconda.com>
Date: Mon, 12 Jun 2023 13:53:25 +0200
Subject: [PATCH] pass CXX, CXXFLAGS as params to engine/build.sh

---
 bootstrap.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bootstrap.sh b/bootstrap.sh
index 654801e21f..6d77c7e78c 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}
+  "$my_dir/tools/build/src/engine/build.sh" --cxx=${CXX} --cxxflags=${CXXFLAGS}  ${TOOLSET}
   if [ $? -ne 0 ]; then
       echo
       echo "Failed to build B2 build engine"
-- 
2.25.1

