mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +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>
This commit is contained in:
committed by
Martin Jansa
parent
332b5ce49b
commit
9df4c37a12
@@ -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}'
|
||||
|
||||
Reference in New Issue
Block a user