]> code.ossystems Code Review - openembedded-core.git/commitdiff
meson.bbclass: do not pass native compiler/linker flags via command line
authorAlexander Kanavin <alex.kanavin@gmail.com>
Tue, 30 Jul 2019 15:54:26 +0000 (17:54 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 31 Jul 2019 22:03:03 +0000 (23:03 +0100)
With 0.51.0 version these command line options override what is in the cross file (e.g.
the cross-flags). I could not determine what is the scenario when the native flags are
needed (this would be building a native binary in the context of cross build).
If we find such a scenario we would need to find a way to pass native flags
through some other channel.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/meson.bbclass

index 626b0e789b469a4301d6ffc3300011efe381ad99..dafdd18bf417f45d903a8fd8b94ea7e0d03bb2c8 100644 (file)
@@ -24,11 +24,7 @@ MESONOPTS = " --prefix ${prefix} \
               --infodir ${@noprefix('infodir', d)} \
               --sysconfdir ${sysconfdir} \
               --localstatedir ${localstatedir} \
-              --sharedstatedir ${sharedstatedir} \
-              -Dc_args='${BUILD_CPPFLAGS} ${BUILD_CFLAGS}' \
-              -Dc_link_args='${BUILD_LDFLAGS}' \
-              -Dcpp_args='${BUILD_CPPFLAGS} ${BUILD_CXXFLAGS}' \
-              -Dcpp_link_args='${BUILD_LDFLAGS}'"
+              --sharedstatedir ${sharedstatedir} "
 
 EXTRA_OEMESON_append = " ${PACKAGECONFIG_CONFARGS}"