From 1b1d71aeb9a9c6f3d4ba92cee48e3b7592003454 Mon Sep 17 00:00:00 2001 From: Reshetnikov Alexandr Date: Tue, 10 Oct 2023 23:15:29 +0400 Subject: [PATCH] ~~~r --- zstd/build_mingw.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zstd/build_mingw.sh b/zstd/build_mingw.sh index 8ab24dca7..37cbaaac8 100755 --- a/zstd/build_mingw.sh +++ b/zstd/build_mingw.sh @@ -21,12 +21,13 @@ echo "::endgroup::" echo "::group::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 cd "$dp0/release/$tool_name-$tool_version" -export CPPFLAGS=-I../zlib -export LDFLAGS=../zlib/libz.a +export CPPFLAGS=-I"$dp0/release/zlib" +export LDFLAGS="$dp0/release/zlib/libz.a" make -j allzstd MOREFLAGS=-static V=1 cp -f "./$tool_name.exe" "$dp0/release/build/"