From e8eb6d3237fdbd32102db3d1831a3ab834802557 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 4 Jul 2023 10:06:22 -0700 Subject: meson.bbclass: Point to llvm-config from native sysroot Default search in meson would grok /usr/bin for llvm-config and if found will use it, which might add wrong paths into cflags/ldflags, since we depend on llvm-native when building gallium support ( thats when llvm-config is effective), its better to point llvm-config into native sysroot so it can add correct paths into compiler/linker cmdline (From OE-Core rev: aa91fb2f0af1a32809ab1755598da5986b2dd06d) Signed-off-by: Khem Raj Signed-off-by: Richard Purdie (cherry picked from commit cc73360b9728812ed6123e30559b77d8e89cc21c) Signed-off-by: Steve Sakoman --- meta/classes-recipe/meson.bbclass | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/classes-recipe') diff --git a/meta/classes-recipe/meson.bbclass b/meta/classes-recipe/meson.bbclass index 48688bed75..7f5e9b1943 100644 --- a/meta/classes-recipe/meson.bbclass +++ b/meta/classes-recipe/meson.bbclass @@ -111,6 +111,7 @@ nm = ${@meson_array('BUILD_NM', d)} strip = ${@meson_array('BUILD_STRIP', d)} readelf = ${@meson_array('BUILD_READELF', d)} objcopy = ${@meson_array('BUILD_OBJCOPY', d)} +llvm-config = '${STAGING_BINDIR_NATIVE}/llvm-config' pkgconfig = 'pkg-config-native' ${@rust_tool(d, "BUILD_SYS")} -- cgit v1.2.3-54-g00ecf