]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
meson.bbclass: Point to llvm-config from native sysroot
authorKhem Raj <raj.khem@gmail.com>
Tue, 4 Jul 2023 17:06:22 +0000 (10:06 -0700)
committerSteve Sakoman <steve@sakoman.com>
Mon, 31 Jul 2023 18:12:27 +0000 (08:12 -1000)
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

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>
meta/classes/meson.bbclass

index 19b54e0fdc06b78b421c2fca7e193f2cfaa5d594..fb6660c1a25c445af1a70bb0801f3109e11c9da4 100644 (file)
@@ -105,6 +105,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")}