[vlc-commits] configure: fix the PKG_CONFIG_PATH when building on mingw32 shells
Steve Lhomme
git at videolan.org
Tue Mar 19 11:54:10 CET 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Mar 13 09:16:05 2019 +0100| [d64901cdeaeccecd185ba83177cb0007cad16283] | committer: Steve Lhomme
configure: fix the PKG_CONFIG_PATH when building on mingw32 shells
The mingw32/mingw64 pkg-config doesn't handle UNIX pathes
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d64901cdeaeccecd185ba83177cb0007cad16283
---
configure.ac | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index b7b33f23e6..36d8095f0f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -467,7 +467,15 @@ AS_IF([test -n "${CONTRIB_DIR}"], [
CFLAGS="${CFLAGS} -I${CONTRIB_DIR}/include"
CXXFLAGS="${CXXFLAGS} -I${CONTRIB_DIR}/include"
OBJCFLAGS="${OBJCFLAGS} -I${CONTRIB_DIR}/include -F${CONTRIB_DIR} -F${CONTRIB_DIR}/Frameworks"
- export PKG_CONFIG_PATH="${CONTRIB_DIR}/lib/pkgconfig:${CONTRIB_DIR}/share/pkgconfig:$PKG_CONFIG_PATH"
+ PKG_CONFIG_PATH="${CONTRIB_DIR}/lib/pkgconfig:${CONTRIB_DIR}/share/pkgconfig:${PKG_CONFIG_PATH}"
+ case "${build_os}" in
+ mingw32)
+ export PKG_CONFIG_PATH=`cygpath -mp ${PKG_CONFIG_PATH}`
+ ;;
+ *)
+ export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
+ ;;
+ esac
LDFLAGS="${LDFLAGS} -L${CONTRIB_DIR}/lib"
AS_IF([test -z "$LUAC"], [
More information about the vlc-commits
mailing list