Skip to content

Commit

Permalink
~~~r
Browse files Browse the repository at this point in the history
  • Loading branch information
hemnstill committed Oct 10, 2023
1 parent 20c83eb commit 1b1d71a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zstd/build_mingw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down

0 comments on commit 1b1d71a

Please sign in to comment.