Skip to content

Instantly share code, notes, and snippets.

@artynet
Last active July 15, 2021 03:19
Show Gist options
  • Save artynet/75518a8d219abd8c435a9b3b73b4ec3b to your computer and use it in GitHub Desktop.
Save artynet/75518a8d219abd8c435a9b3b73b4ec3b to your computer and use it in GitHub Desktop.
Cross compile zLib for mingw32-w64
#!/bin/bash
# PREFIXDIR=$HOME/Programmi/Zlib-1.2.11-win32-x86
PREFIXDIR=$HOME/Programmi/win32-cross
make -f win32/Makefile.gcc BINARY_PATH=$PREFIXDIR/bin INCLUDE_PATH=$PREFIXDIR/include LIBRARY_PATH=$PREFIXDIR/lib SHARED_MODE=1 PREFIX=i686-w64-mingw32- install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment