Check-in [56d1fd1c50]
Overview
Comment:Allow zlib 1.2.8 to build and integrate properly on Windows using MinGW.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | winZlib128
Files: files | file ages | folders
SHA1:56d1fd1c504fef053c70a00cb7c49a32f2ac5025
User & Date: mistachkin on 2015-03-26 04:39:56
Other Links: manifest | tags
Context
2015-03-30
23:54
Allow zlib 1.2.8 to build and integrate properly on Windows using MinGW. check-in: 9ad5a7514f user: mistachkin tags: trunk
2015-03-26
19:05
Combine current Windows fixes for testing purposes. check-in: d263c81271 user: mistachkin tags: winAll
04:39
Allow zlib 1.2.8 to build and integrate properly on Windows using MinGW. Closed-Leaf check-in: 56d1fd1c50 user: mistachkin tags: winZlib128
2015-03-16
01:07
Updated default target to be 8.6.4 check-in: 4f42c11e1e user: rkeene tags: trunk
Changes

Modified zlib/build.sh from [13b1c7bf71] to [e9c0794475].

    46     46   		gzip -dc "../${SRC}" | tar -xf -
    47     47   	else    
    48     48   		cp -rp ../buildsrc/* './'
    49     49   	fi
    50     50   
    51     51   	cd "${BUILDDIR}" || exit 1
    52     52   
           53  +	case $(uname -s 2> /dev/null) in
           54  +		MINGW* | mingw*)
           55  +			# use win32/Makefile.gcc instead.
           56  +			echo "Running: cp win32/Makefile.gcc Makefile"
           57  +			cp win32/Makefile.gcc Makefile
           58  +
           59  +			echo "Running: ${MAKE:-make}"
           60  +			${MAKE:-make} || exit 1
           61  +
           62  +			echo "Running: BINARY_PATH=${INSTDIR}/bin INCLUDE_PATH=${INSTDIR}/include LIBRARY_PATH=${INSTDIR}/lib ${MAKE:-make} install"
           63  +			BINARY_PATH=${INSTDIR}/bin INCLUDE_PATH=${INSTDIR}/include LIBRARY_PATH=${INSTDIR}/lib ${MAKE:-make} install
           64  +			;;
           65  +		*)
    53     66   	# If we are building for KitDLL, compile with '-fPIC'
    54     67   	if [ "${KITTARGET}" = "kitdll" ]; then
    55     68   		CFLAGS="${CFLAGS} -fPIC"
    56     69   		export CFLAGS
    57     70   	fi
    58     71   
    59     72   	# We don't pass CONFIGUREEXTRA here, since this isn't a GNU autoconf
................................................................................
    62     75   	./configure --prefix="${INSTDIR}" --libdir="${INSTDIR}/lib" --static
    63     76   
    64     77   	echo "Running: ${MAKE:-make}"
    65     78   	${MAKE:-make} || exit 1
    66     79   
    67     80   	echo "Running: ${MAKE:-make} install"
    68     81   	${MAKE:-make} install
           82  +			;;
           83  +	esac
    69     84   
    70     85   	# We don't really care too much about failure in zlib
    71     86   	exit 0
    72     87   ) || exit 1
    73     88   
    74     89   exit 0