mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-05-17 18:50:47 +00:00
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> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
parent
1aa842b7af
commit
2eed84ca1e
@ -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}'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user