[meta-mingw][scarthgap][PATCH] toolchain-scripts-mingw32: add /usr/share/pkgconfig

Ross Stutterheim <[email protected]>
Newsgroups org.yoctoproject.lists.yocto-patches
Message-ID <[email protected]>
OE core commit 1bea760f3f462fdcc3eefc0d8597688d61447ddd added
/usr/share/pkgconfig to PKG_CONFIG_PATH back in 2016. Add here so SDKs
generated for windows can find the same packages as SDKs for linux
when using pkg-config after sourcing the environment-setup script.

Signed-off-by: Ross Stutterheim <[email protected]>
Signed-off-by: Joshua Watt <[email protected]>
(cherry picked from commit f27dbe7597d1d116f750f5588772253c542df112)
Signed-off-by: Ross Stutterheim <[email protected]>
---
 classes/toolchain-scripts-mingw32.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/classes/toolchain-scripts-mingw32.bbclass b/classes/toolchain-scripts-mingw32.bbclass
index 8cb426a..ee53bf8 100644
--- a/classes/toolchain-scripts-mingw32.bbclass
+++ b/classes/toolchain-scripts-mingw32.bbclass
@@ -25,7 +25,7 @@ toolchain_create_sdk_env_script:sdkmingw32 () {
 	done
 	echo "set PATH=$sdkpathnative$bindir;$sdkpathnative$bindir/../${HOST_SYS}/bin;$sdkpathnative$bindir/${TARGET_SYS}"$EXTRAPATH';%PATH%' >> $script
 	echo 'set PKG_CONFIG_SYSROOT_DIR=%SDKTARGETSYSROOT%' >> $script
-	echo 'set PKG_CONFIG_PATH=%SDKTARGETSYSROOT%'"$libdir"'/pkgconfig' >> $script
+	echo 'set PKG_CONFIG_PATH=%SDKTARGETSYSROOT%'"$libdir"'/pkgconfig;%SDKTARGETSYSROOT%'"$prefix"'/share/pkgconfig' >> $script
 	echo 'set CONFIG_SITE=%SDKROOT%/site-config-'"${multimach_target_sys}" >> $script
 	echo "set OECORE_NATIVE_SYSROOT=$sdkpathnative" >> $script
 	echo 'set OECORE_TARGET_SYSROOT=%SDKTARGETSYSROOT%' >> $script
-- 
2.54.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.