summaryrefslogtreecommitdiffstats
path: root/meta-oe/classes
diff options
context:
space:
mode:
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>2017-05-23 10:48:30 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2017-06-05 11:01:45 +0200
commit9df4c37a12f6505865cf4add8c28aa8f63b6c0ab (patch)
tree1c32c9bcaa2d2c33f367159bf2baa68ff6eb4474 /meta-oe/classes
parent332b5ce49b7be2a6883828e83fb9ab129eb67ba2 (diff)
downloadmeta-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.bbclass2
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]
63c_args = [${@meson_array('MESON_C_ARGS', d)}] 63c_args = [${@meson_array('MESON_C_ARGS', d)}]
64cpp_args = [${@meson_array('TOOLCHAIN_OPTIONS', d)}]
64c_link_args = [${@meson_array('TOOLCHAIN_OPTIONS', d)}] 65c_link_args = [${@meson_array('TOOLCHAIN_OPTIONS', d)}]
66cpp_link_args = [${@meson_array('TOOLCHAIN_OPTIONS', d)}]
65 67
66[host_machine] 68[host_machine]
67system = '${HOST_OS}' 69system = '${HOST_OS}'