external/zlib-1.2.11/make-cross-x86.sh
author Sam Lantinga <slouken@libsdl.org>
Fri, 26 Oct 2018 14:58:01 -0700
changeset 617 d64228a395fc
parent 522 cdbdf5652e8e
permissions -rw-r--r--
Fixed webp library detection when cross-compiling for Windows
slouken@522
     1
#!/bin/sh
slouken@522
     2
slouken@522
     3
TARGET=i686-w64-mingw32
slouken@522
     4
INSTALL_PATH=/usr/local/$TARGET
slouken@522
     5
export PATH=$PATH:/usr/local/bin
slouken@522
     6
slouken@522
     7
make -f win32/Makefile.gcc \
slouken@522
     8
    SHARED_MODE=1 \
slouken@522
     9
    LDFLAGS=-static-libgcc \
slouken@522
    10
    PREFIX=$TARGET- \
slouken@522
    11
    prefix=$INSTALL_PATH \
slouken@522
    12
    BINARY_PATH=$INSTALL_PATH/bin \
slouken@522
    13
    INCLUDE_PATH=$INSTALL_PATH/include \
slouken@522
    14
    LIBRARY_PATH=$INSTALL_PATH/lib $*