diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-07-04 10:06:22 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-07-10 11:36:34 +0100 |
commit | bed76c8b4869be839893221b462c290004ee0eb4 (patch) | |
tree | e6e41ea451c50344110578a95cdd452403a163f3 /meta/classes-recipe/meson.bbclass | |
parent | abe98b03430e06f786e4c60a74cd3324ba5d2d43 (diff) | |
download | poky-bed76c8b4869be839893221b462c290004ee0eb4.tar.gz |
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: cc73360b9728812ed6123e30559b77d8e89cc21c)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/meson.bbclass')
-rw-r--r-- | meta/classes-recipe/meson.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
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)} | |||
111 | strip = ${@meson_array('BUILD_STRIP', d)} | 111 | strip = ${@meson_array('BUILD_STRIP', d)} |
112 | readelf = ${@meson_array('BUILD_READELF', d)} | 112 | readelf = ${@meson_array('BUILD_READELF', d)} |
113 | objcopy = ${@meson_array('BUILD_OBJCOPY', d)} | 113 | objcopy = ${@meson_array('BUILD_OBJCOPY', d)} |
114 | llvm-config = '${STAGING_BINDIR_NATIVE}/llvm-config' | ||
114 | pkgconfig = 'pkg-config-native' | 115 | pkgconfig = 'pkg-config-native' |
115 | ${@rust_tool(d, "BUILD_SYS")} | 116 | ${@rust_tool(d, "BUILD_SYS")} |
116 | 117 | ||