From 5dde5a5a3c12dd8f52cb61ba220ec221ecfa98f0 Mon Sep 17 00:00:00 2001 From: Thomas Rodgers Date: Thu, 29 Jul 2021 10:15:37 -0700 Subject: [PATCH] Use options from RPM for release builds with GCC --- tools/build/src/engine/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build/src/engine/build.sh b/tools/build/src/engine/build.sh index 58f41cb4a..f85040f99 100755 --- a/tools/build/src/engine/build.sh +++ b/tools/build/src/engine/build.sh @@ -325,7 +325,7 @@ case "${B2_TOOLSET}" in B2_CXX="${B2_CXX} -pthread" ;; esac - B2_CXXFLAGS_RELEASE="-O2 -s" + B2_CXXFLAGS_RELEASE="${RPM_OPT_FLAGS} ${RPM_LD_FLAGS}" B2_CXXFLAGS_DEBUG="-O0 -g" ;; -- 2.31.1