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 <[email protected]> --- 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 e27ed3906e41..c33174a21821 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}' -- 2.11.0 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
