summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-07-04 10:06:22 -0700
committerSteve Sakoman <steve@sakoman.com>2023-08-01 06:17:28 -1000
commite8eb6d3237fdbd32102db3d1831a3ab834802557 (patch)
tree506b7d577ff3abcf12d989acb9f0a144abc1d25c /meta/classes-recipe
parent1dccb216a07419a617c1fb6213ddeea60c8c6ccd (diff)
downloadpoky-e8eb6d3237fdbd32102db3d1831a3ab834802557.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: aa91fb2f0af1a32809ab1755598da5986b2dd06d) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit cc73360b9728812ed6123e30559b77d8e89cc21c) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/classes-recipe')
-rw-r--r--meta/classes-recipe/meson.bbclass1
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)}
111strip = ${@meson_array('BUILD_STRIP', d)} 111strip = ${@meson_array('BUILD_STRIP', d)}
112readelf = ${@meson_array('BUILD_READELF', d)} 112readelf = ${@meson_array('BUILD_READELF', d)}
113objcopy = ${@meson_array('BUILD_OBJCOPY', d)} 113objcopy = ${@meson_array('BUILD_OBJCOPY', d)}
114llvm-config = '${STAGING_BINDIR_NATIVE}/llvm-config'
114pkgconfig = 'pkg-config-native' 115pkgconfig = 'pkg-config-native'
115${@rust_tool(d, "BUILD_SYS")} 116${@rust_tool(d, "BUILD_SYS")}
116 117