aboutsummaryrefslogtreecommitdiffstats
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
meta-openembedded-9df4c37a12f6505865cf4add8c28aa8f63b6c0ab.tar.bz2
meta-openembedded-9df4c37a12f6505865cf4add8c28aa8f63b6c0ab.zip
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'
[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}'