[vlc-devel] [PATCH] package/win32: build.sh: force building the local meson

Steve Lhomme robux4 at ycbcr.xyz
Tue Jan 28 09:58:14 CET 2020


Versions above 0.51.1 don't add the -lpthread properly in libplacebo.pc.
---
 extras/package/win32/build.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/extras/package/win32/build.sh b/extras/package/win32/build.sh
index 9607fcfe058..f46fbe832b7 100755
--- a/extras/package/win32/build.sh
+++ b/extras/package/win32/build.sh
@@ -111,9 +111,11 @@ mkdir -p extras/tools
 cd extras/tools
 
 export PATH="$PWD/build/bin":"$PATH"
+# Force meson 0.51.1 as newer versions don't add -lpthread properly in libplacebo.pc
+FORCED_TOOLS="meson"
 # Force libtool build when compiling with clang
 if [ "$COMPILING_WITH_CLANG" -gt 0 ] && [ ! -d "libtool" ]; then
-    FORCED_TOOLS="libtool"
+    FORCED_TOOLS="$FORCED_TOOLS libtool"
 fi
 # bootstrap only if needed in interactive mode
 if [ "$INTERACTIVE" != "yes" ] || [ ! -f ./Makefile ]; then
-- 
2.17.1



More information about the vlc-devel mailing list