external/zlib-1.2.11.patch
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
     1 diff -ruN zlib-1.2.11.orig/make-cross-x64.sh zlib-1.2.11/make-cross-x64.sh
     2 --- zlib-1.2.11.orig/make-cross-x64.sh	1969-12-31 16:00:00.000000000 -0800
     3 +++ zlib-1.2.11/make-cross-x64.sh	2017-10-21 21:09:10.000000000 -0700
     4 @@ -0,0 +1,14 @@
     5 +#!/bin/sh
     6 +
     7 +TARGET=x86_64-w64-mingw32
     8 +INSTALL_PATH=/usr/local/$TARGET
     9 +export PATH=$PATH:/usr/local/bin
    10 +
    11 +make -f win32/Makefile.gcc \
    12 +    SHARED_MODE=1 \
    13 +    LDFLAGS=-static-libgcc \
    14 +    PREFIX=$TARGET- \
    15 +    prefix=$INSTALL_PATH \
    16 +    BINARY_PATH=$INSTALL_PATH/bin \
    17 +    INCLUDE_PATH=$INSTALL_PATH/include \
    18 +    LIBRARY_PATH=$INSTALL_PATH/lib $*
    19 diff -ruN zlib-1.2.11.orig/make-cross-x86.sh zlib-1.2.11/make-cross-x86.sh
    20 --- zlib-1.2.11.orig/make-cross-x86.sh	1969-12-31 16:00:00.000000000 -0800
    21 +++ zlib-1.2.11/make-cross-x86.sh	2017-10-21 21:09:10.000000000 -0700
    22 @@ -0,0 +1,14 @@
    23 +#!/bin/sh
    24 +
    25 +TARGET=i686-w64-mingw32
    26 +INSTALL_PATH=/usr/local/$TARGET
    27 +export PATH=$PATH:/usr/local/bin
    28 +
    29 +make -f win32/Makefile.gcc \
    30 +    SHARED_MODE=1 \
    31 +    LDFLAGS=-static-libgcc \
    32 +    PREFIX=$TARGET- \
    33 +    prefix=$INSTALL_PATH \
    34 +    BINARY_PATH=$INSTALL_PATH/bin \
    35 +    INCLUDE_PATH=$INSTALL_PATH/include \
    36 +    LIBRARY_PATH=$INSTALL_PATH/lib $*