From 9df4c37a12f6505865cf4add8c28aa8f63b6c0ab Mon Sep 17 00:00:00 2001 From: Ricardo Ribalda Delgado Date: Tue, 23 May 2017 10:48:30 +0200 Subject: 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 --- meta-oe/classes/meson.bbclass | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta-oe/classes/meson.bbclass') 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}' -- cgit v1.2.3-54-g00ecf