]> code.ossystems Code Review - openembedded-core.git/commitdiff
meson.bbclass: export STRIP=${BUILD_STRIP}
authorRoss Burton <ross.burton@intel.com>
Fri, 19 Jul 2019 22:58:41 +0000 (23:58 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 20 Jul 2019 11:04:24 +0000 (12:04 +0100)
In Meson the environment variables are always the native tools, so export
STRIP=${BUILD_STRIP} along with CC et al to silence this Meson warning:

WARNING: Env var STRIP seems to point to the cross compiler.
This is probably wrong, it should always point to the native compiler.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/meson.bbclass

index 70b3653738f45ea82e063dabd53e04f73590f6c9..626b0e789b469a4301d6ffc3300011efe381ad99 100644 (file)
@@ -130,6 +130,7 @@ override_native_tools() {
     export CXX="${BUILD_CXX}"
     export LD="${BUILD_LD}"
     export AR="${BUILD_AR}"
+    export STRIP="${BUILD_STRIP}"
     # These contain *target* flags but will be used as *native* flags.  The
     # correct native flags will be passed via -Dc_args and so on, unset them so
     # they don't interfere with tools invoked by Meson (such as g-ir-scanner)