diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-02-28 20:13:46 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-04 17:14:15 +0000 |
commit | ef20f069d07af3ea8cfc195fba8d5c4323e0c3b8 (patch) | |
tree | 4f7feccfec3fe0ebf7269611b99aea83b9ae8eaa /meta/recipes-support | |
parent | 0aae0afd05e3a58e3041bf8d2ba1ab7dcfa9f8be (diff) | |
download | poky-ef20f069d07af3ea8cfc195fba8d5c4323e0c3b8.tar.gz |
libical: Pass TOOLCHAIN_OPTIONS via CFLAGS
This ensures that right sysroot is used during build, otherwise we see
warnings in build about using wrong sysroot and it fails explicitly with
clang
x86_64-yoe-linux-ld: warning: library search path "/usr/lib/gcc/x86_6
4-pc-linux-gnu/11.2.0/../../../../lib64" is unsafe for cross-compilation
x86_64-yoe-linux-ld: cannot find /usr/lib/clang/14.0.0/lib/linux/libc
lang_rt.builtins-x86_64.a: No such file or directory
(From OE-Core rev: feb8893e0f52c7ab2d5efd456901a2bb91839d44)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r-- | meta/recipes-support/libical/libical_3.0.14.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-support/libical/libical_3.0.14.bb b/meta/recipes-support/libical/libical_3.0.14.bb index 717eb11e12..879ad8ed59 100644 --- a/meta/recipes-support/libical/libical_3.0.14.bb +++ b/meta/recipes-support/libical/libical_3.0.14.bb | |||
@@ -18,6 +18,8 @@ UPSTREAM_CHECK_URI = "https://github.com/libical/libical/releases" | |||
18 | 18 | ||
19 | inherit cmake pkgconfig gobject-introspection vala | 19 | inherit cmake pkgconfig gobject-introspection vala |
20 | 20 | ||
21 | CFLAGS += "${TOOLCHAIN_OPTIONS}" | ||
22 | |||
21 | DEPENDS += "libical-native" | 23 | DEPENDS += "libical-native" |
22 | 24 | ||
23 | PACKAGECONFIG ??= "icu glib" | 25 | PACKAGECONFIG ??= "icu glib" |