Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hottabxp/c49c35500d7d3c5c9d88bf2e64a3f66a to your computer and use it in GitHub Desktop.
Save hottabxp/c49c35500d7d3c5c9d88bf2e64a3f66a 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