]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
qemu: extend PKG_CONFIG_LIBDIR when using the host search path
authorRoss Burton <ross.burton@arm.com>
Thu, 26 Feb 2026 14:31:11 +0000 (14:31 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Mar 2026 17:36:54 +0000 (17:36 +0000)
The qemu recipe does something horrible when building natively and can
also search the build host's search path.

Now that we've moved from PKG_CONFIG_PATH to PKG_CONFIG_LIBDIR, this
code also needs to do the same as otherwise it will find packages on the
build host before the native sysroot.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/qemu/qemu.inc

index 7aa593bc5d91a2927c00ffd55230bf6263c02626..8abe366284ebdf6cdb5459eb973f670cf446140b 100644 (file)
@@ -129,7 +129,7 @@ do_configure:prepend:class-native() {
        # Append build host pkg-config paths for native target since the host may provide sdl
        BHOST_PKGCONFIG_PATH=$(PATH=/usr/bin:/bin pkg-config --variable pc_path pkg-config || echo "")
        if [ ! -z "$BHOST_PKGCONFIG_PATH" ]; then
-               export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$BHOST_PKGCONFIG_PATH
+               export PKG_CONFIG_LIBDIR=$PKG_CONFIG_LIBDIR:$BHOST_PKGCONFIG_PATH
        fi
 }