From c01ba48c97a56bd96386df67ec9d8bb869011380 Mon Sep 17 00:00:00 2001 From: Duke Date: Mon, 29 Dec 2025 19:43:30 -0500 Subject: [PATCH] Use custom CC/CXX variables during configure with reasonable defaults --- util/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/build.sh b/util/build.sh index 51c2c5687..deda1cbbf 100755 --- a/util/build.sh +++ b/util/build.sh @@ -131,7 +131,8 @@ HOST="$HOST" BUILD="$BUILD" "$MAKE" "$@" -C ./depends/ V=1 time ./autogen.sh -CONFIG_SITE="$PWD/depends/$HOST/share/config.site" ./configure "$HARDENING_ARG" "$LCOV_ARG" "$TEST_ARG" "$MINING_ARG" $CONFIGURE_FLAGS CXXFLAGS='-g' +# Default to gcc and g++ if not specified and use those compilers in config +CC="${CC:-gcc}" CXX="${CXX:-g++}" CONFIG_SITE="$PWD/depends/$HOST/share/config.site" ./configure "$HARDENING_ARG" "$LCOV_ARG" "$TEST_ARG" "$MINING_ARG" $CONFIGURE_FLAGS "CC=$CC" "CXX=$CXX" CXXFLAGS='-g' # Build CryptoConditions stuff WD=$PWD