From 2eed84ca1e5c3be0441e918ebdd262183f38e79e Mon Sep 17 00:00:00 2001 From: Ricardo Ribalda Delgado Date: Tue, 23 May 2017 10:48:30 +0200 Subject: [PATCH] meson: Suport for c++ cross-compilation cpp_args and cpp_link_args must be set on the meson.cross file to compile c++ applications. Otherwise variables such as the sysroot are not set correctly and libraries/headers are not found. Signed-off-by: Ricardo Ribalda Delgado Signed-off-by: Martin Jansa Signed-off-by: Armin Kuster --- meta-oe/classes/meson.bbclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-oe/classes/meson.bbclass b/meta-oe/classes/meson.bbclass index e27ed3906e..c33174a218 100644 --- a/meta-oe/classes/meson.bbclass +++ b/meta-oe/classes/meson.bbclass @@ -61,7 +61,9 @@ pkgconfig = 'pkg-config' [properties] c_args = [${@meson_array('MESON_C_ARGS', d)}] +cpp_args = [${@meson_array('TOOLCHAIN_OPTIONS', d)}] c_link_args = [${@meson_array('TOOLCHAIN_OPTIONS', d)}] +cpp_link_args = [${@meson_array('TOOLCHAIN_OPTIONS', d)}] [host_machine] system = '${HOST_OS}'