diff options
author | Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> | 2017-05-23 10:48:30 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-06-05 11:01:45 +0200 |
commit | 9df4c37a12f6505865cf4add8c28aa8f63b6c0ab (patch) | |
tree | 1c32c9bcaa2d2c33f367159bf2baa68ff6eb4474 /meta-oe/classes | |
parent | 332b5ce49b7be2a6883828e83fb9ab129eb67ba2 (diff) | |
download | meta-openembedded-9df4c37a12f6505865cf4add8c28aa8f63b6c0ab.tar.gz |
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 <ricardo.ribalda@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/classes')
-rw-r--r-- | meta-oe/classes/meson.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-oe/classes/meson.bbclass b/meta-oe/classes/meson.bbclass index e27ed3906..c33174a21 100644 --- a/meta-oe/classes/meson.bbclass +++ b/meta-oe/classes/meson.bbclass | |||
@@ -61,7 +61,9 @@ pkgconfig = 'pkg-config' | |||
61 | 61 | ||
62 | [properties] | 62 | [properties] |
63 | c_args = [${@meson_array('MESON_C_ARGS', d)}] | 63 | c_args = [${@meson_array('MESON_C_ARGS', d)}] |
64 | cpp_args = [${@meson_array('TOOLCHAIN_OPTIONS', d)}] | ||
64 | c_link_args = [${@meson_array('TOOLCHAIN_OPTIONS', d)}] | 65 | c_link_args = [${@meson_array('TOOLCHAIN_OPTIONS', d)}] |
66 | cpp_link_args = [${@meson_array('TOOLCHAIN_OPTIONS', d)}] | ||
65 | 67 | ||
66 | [host_machine] | 68 | [host_machine] |
67 | system = '${HOST_OS}' | 69 | system = '${HOST_OS}' |