Neuter the native build of pkgconf so that it doesn't default to looking
on the build host for .pc files, to avoid accidental host contamination.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
inherit autotools pkgconfig
+# Tell the native pkgconf to use directories that don't exist, so we _need_ to
+# tell it the paths with environment variables.
+EXTRA_OECONF:append:class-native = " --with-pkg-config-dir='/not/exist' \
+ --with-system-includedir=/not/exist/include \
+ --with-system-libdir=/not/exist/lib"
+
do_install:append () {
# Install a wrapper which deals, as much as possible with pkgconf vs
# pkg-config compatibility issues.