diff options
author | 2020-08-07 10:58:12 +0200 | |
---|---|---|
committer | 2020-08-07 21:10:07 +0200 | |
commit | af148ef4f01aaa4f8b1ac47f5e46514394bc79aa (patch) | |
tree | c9bdd43298c90da8baeaafda374b846cc28dfd56 /package/boost/boost.mk | |
parent | a68fb15dc61bb845e38ad8f4ef48249458701bb3 (diff) | |
download | buildroot-af148ef4f01aaa4f8b1ac47f5e46514394bc79aa.tar.gz buildroot-af148ef4f01aaa4f8b1ac47f5e46514394bc79aa.tar.bz2 |
package/boost: fixup Optimization flag in boost build
When building with Boost Build the CXXFLAGS are extended depending
on the optimization level set. When not defined explicitly the
optimization level depends on the <variant>. For release it's 'speed'
and for debug it's set to 'off'
These flags overwrite the -O flag passed in with TARGET_CXXFLAGS as
it is appended when calling g++.
This commit sets the Optimization flags generated by Boost Build
to the value of TARGET_OPTIMIZATION no matter what level is used.
As Boost Build offers no nice way to alter those values the gcc
toolchain file is altered directly.
Signed-off-by: Michael Nosthoff <buildroot@heine.tech>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Diffstat (limited to 'package/boost/boost.mk')
-rw-r--r-- | package/boost/boost.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/boost/boost.mk b/package/boost/boost.mk index ef638fc9df..323802488d 100644 --- a/package/boost/boost.mk +++ b/package/boost/boost.mk @@ -134,6 +134,7 @@ define BOOST_CONFIGURE_CMDS (cd $(@D) && ./bootstrap.sh $(BOOST_FLAGS)) echo "using gcc : `$(TARGET_CC) -dumpversion` : $(TARGET_CXX) : <cxxflags>\"$(BOOST_TARGET_CXXFLAGS)\" <linkflags>\"$(TARGET_LDFLAGS)\" ;" > $(@D)/user-config.jam echo "" >> $(@D)/user-config.jam + sed -i "s/: -O.* ;/: $(TARGET_OPTIMIZATION) ;/" $(@D)/tools/build/src/tools/gcc.jam endef define BOOST_BUILD_CMDS |