]> code.ossystems Code Review - openembedded-core.git/commit
meson.bbclass: Remove the MESON_*_ARGS variables
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Tue, 5 Nov 2019 22:08:32 +0000 (23:08 +0100)
committerArmin Kuster <akuster808@gmail.com>
Sun, 10 Nov 2019 22:47:31 +0000 (14:47 -0800)
commit650aa572f96266ea532666b5896d259ceb0dc1da
tree16ffab00822c63f467a240c18968c525374b4e1a
parent1913e688ad95d465e9b9d16ad57f2bdef2b50d93
meson.bbclass: Remove the MESON_*_ARGS variables

The options in ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} are already passed
via ${CC}/${CXX} and there is no reason to pass them a second time. Thus
we can remove MESON_TOOLCHAIN_ARGS. And when it is removed, the other
MESON_*_ARGS variables revert to the standard CFLAGS, CXXFLAGS and
LDFLAGS, so just use them directly instead.

Apart from the obvious improvement with not passing a lot of options
twice, this also solves a problem where -pie would be passed on the
command line in a way that it would prevent building any dynamic
libraries using meson if using a toolchain that is not built with
--enable-default-pie and if security_flags.inc is used.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/meson.bbclass