[Buildroot] [PATCH v2] package/boost: fixup Optimization flag in boost build
Peter Korsgaard
peter at korsgaard.com
Fri Aug 28 15:03:17 UTC 2020
>>>>> "Michael" == Michael Nosthoff <buildroot at heine.tech> writes:
> 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 at heine.tech>
> ---
> v1 -> v2:
> - use sed to manipulate gcc.jam directly
> - remove extending user-config.jam
Committed to 2020.02.x and 2020.05.x, thanks.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list