diff --git a/zstd/build_mingw.sh b/zstd/build_mingw.sh index f6698555c..7407d8214 100755 --- a/zstd/build_mingw.sh +++ b/zstd/build_mingw.sh @@ -10,6 +10,10 @@ download_url="https://github.com/facebook/zstd/archive/refs/tags/v$tool_version. echo "::group::prepare sources $download_url" mkdir -p "$dp0/release/build" && cd "$dp0/release" + +git clone --depth 1 --branch v1.2.11 https://github.com/madler/zlib +make -C zlib -f win32/Makefile.gcc libz.a + wget "$download_url" -O "tool-$tool_version.tar.gz" tar -xf "tool-$tool_version.tar.gz" && cd "$tool_name-$tool_version" @@ -17,9 +21,6 @@ echo "::endgroup::" echo "::group::build" -git clone --depth 1 --branch v1.2.11 https://github.com/madler/zlib -make -C zlib -f win32/Makefile.gcc libz.a - cd "$dp0/release/$tool_name-$tool_version" export CPPFLAGS=-I../zlib export LDFLAGS=../zlib/libz.a