[vlc-devel] [PATCH] win32: build.sh: set PKG_CONFIG_PATH in addition to PKG_CONFIG_LIBDIR

Steve Lhomme robux4 at ycbcr.xyz
Wed May 22 11:37:27 CEST 2019


When building in Msys2 PKG_CONFIG_LIBDIR is ignored and thus uses the
system libs when we don't want to.

Maybe only PKG_CONFIG_PATH is sufficient but it probably doesn't hurt to
have both.
---
 extras/package/win32/build.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/extras/package/win32/build.sh b/extras/package/win32/build.sh
index 5c1c780990..4a1330b489 100755
--- a/extras/package/win32/build.sh
+++ b/extras/package/win32/build.sh
@@ -107,7 +107,8 @@ export PATH="$PWD/build/bin":"$PATH"
 cd ../../
 
 export USE_FFMPEG=1
-export PKG_CONFIG_LIBDIR=$PWD/contrib/$TRIPLET/lib/pkgconfig
+export PKG_CONFIG_LIBDIR="$PWD/contrib/$TRIPLET/lib/pkgconfig"
+export PKG_CONFIG_PATH="$PWD/contrib/$TRIPLET/lib/pkgconfig"
 export PATH="$PWD/contrib/$TRIPLET/bin":"$PATH"
 
 if [ "$INTERACTIVE" = "yes" ]; then
-- 
2.17.1



More information about the vlc-devel mailing list