From: Khem Raj Date: Tue, 1 Mar 2022 04:13:46 +0000 (-0800) Subject: libical: Pass TOOLCHAIN_OPTIONS via CFLAGS X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=feb8893e0f52c7ab2d5efd456901a2bb91839d44;p=openembedded-core.git 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 Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- 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" inherit cmake pkgconfig gobject-introspection vala +CFLAGS += "${TOOLCHAIN_OPTIONS}" + DEPENDS += "libical-native" PACKAGECONFIG ??= "icu glib"