[vlc-devel] [PATCH] package/win32: build.sh: set the path with tools before building tools
    Steve Lhomme 
    robux4 at ycbcr.xyz
       
    Thu Oct 24 14:50:58 CEST 2019
    
    
  
So consecutive calls to build.sh won't rebuild tools each time because they
were not found in the PATH yet.
---
 extras/package/win32/build.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extras/package/win32/build.sh b/extras/package/win32/build.sh
index 7134e0edd5c..6bfba56f5cb 100755
--- a/extras/package/win32/build.sh
+++ b/extras/package/win32/build.sh
@@ -105,6 +105,7 @@ fi
 info "Building extra tools"
 cd extras/tools
 
+export PATH="$PWD/build/bin":"$PATH"
 # Force libtool build when compiling with clang
 if [ "$COMPILING_WITH_CLANG" -gt 0 ] && [ ! -d "libtool" ]; then
     FORCED_TOOLS="libtool"
@@ -114,7 +115,6 @@ if [ "$INTERACTIVE" != "yes" ] || [ ! -f ./Makefile ]; then
     NEEDED="$FORCED_TOOLS" ./bootstrap
 fi
 make -j$JOBS
-export PATH="$PWD/build/bin":"$PATH"
 cd ../../
 
 export USE_FFMPEG=1
-- 
2.17.1
    
    
More information about the vlc-devel
mailing list