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 <[email protected]> --- meta/recipes-devtools/pkgconf/pkgconf_2.5.1.bb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta/recipes-devtools/pkgconf/pkgconf_2.5.1.bb b/meta/recipes-devtools/pkgconf/pkgconf_2.5.1.bb index a8455577f63..277ef9786c4 100644 --- a/meta/recipes-devtools/pkgconf/pkgconf_2.5.1.bb +++ b/meta/recipes-devtools/pkgconf/pkgconf_2.5.1.bb @@ -24,6 +24,12 @@ SRC_URI[sha256sum] = "cd05c9589b9f86ecf044c10a2269822bc9eb001eced2582cfffd658b0a 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. -- 2.43.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#233601): https://lists.openembedded.org/g/openembedded-core/message/233601 Mute This Topic: https://lists.openembedded.org/mt/118416244/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
