]> code.ossystems Code Review - openembedded-core.git/commit
meson.bbclass: Remove the MESON_*_ARGS variables
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Mon, 15 Jul 2019 11:25:48 +0000 (13:25 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 16 Jul 2019 11:17:18 +0000 (12:17 +0100)
commit300f4ac59d4b96fc25a40565b22441b51ab08ede
treef7a2c9ee810b470da0bd93c7deaf4798cec3d165
parentd06d6910d1ec9374bb15e02809e64e81198731b6
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>
meta/classes/meson.bbclass