]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
buildtools-tarball: set pkg-config search path
authorRoss Burton <ross.burton@arm.com>
Thu, 26 Jan 2023 12:42:16 +0000 (12:42 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Jan 2023 21:57:07 +0000 (21:57 +0000)
commit8f768a3f4c7ff477e994d60800e5a1b83891615a
treea098f08441de43e01e34a982f6d6398c53a6e5e8
parent74bf535ca5cbcfb38c18775ece863d53dd216008
buildtools-tarball: set pkg-config search path

The buildtools-tarball includes a native sysroot with .pc files, and
in the case of buildtools-extended-tarball a pkg-config binary too.

If we're using the host pkg-config then it doesn't know to search in the
native sysroot.  If we're using our pkg-config then it searches in the
build-time prefix and not the actual SDK installation location.

Neither of these are correct, so set PKG_CONFIG_LIBDIR to search:
- The native sysroot
- The host pkg-config's default search path, if present
- Falling back to /usr/lib/pkgconfig, if not

In an ideal world this would be handled by the generic toolchain script,
but that is slightly more involved.

[ YOCTO #15007 ]

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/meta/buildtools-tarball.bb