[oe-commits] [meta-openembedded] 21/129: meson: Suport for c++ cross-compilation

git at git.openembedded.org git at git.openembedded.org
Mon Sep 11 16:10:30 UTC 2017


This is an automated email from the git hooks/post-receive script.

martin_jansa pushed a commit to branch pyro-next
in repository meta-openembedded.

commit 2eed84ca1e5c3be0441e918ebdd262183f38e79e
Author: Ricardo Ribalda Delgado <ricardo.ribalda at gmail.com>
AuthorDate: Tue May 23 10:48:30 2017 +0200

    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 at gmail.com>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 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 e27ed39..c33174a 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}'

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list