From 4573389840d59bc8cc8151d3a0ad23a8d38aee20 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Tue, 18 Feb 2014 14:48:51 +0100 Subject: [PATCH] Use Github URL for zlib --- src/build/compile.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/build/compile.sh b/src/build/compile.sh index 861dec3d9..caa682cca 100755 --- a/src/build/compile.sh +++ b/src/build/compile.sh @@ -10,7 +10,7 @@ PTHREADS_VERSION="0.1.0" PHPYAML_VERSION="1.1.1" YAML_VERSION="0.1.4" -echo "[PocketMine] PHP installer and compiler for Linux and Mac" +echo "[PocketMine] PHP compiler for Linux, MacOS and Android" DIR="$(pwd)" date > "$DIR/install.log" 2>&1 uname -a >> "$DIR/install.log" 2>&1 @@ -139,8 +139,9 @@ fi cat > test.c <<'CTEST' #include -main(){ +int main(void){ printf("Hello world\n"); + return 0; } CTEST @@ -168,6 +169,7 @@ else fi rm test.* >> "$DIR/install.log" 2>&1 +rm test >> "$DIR/install.log" 2>&1 export CFLAGS="-O2 $CFLAGS" export LDFLAGS="$LDFLAGS" @@ -216,8 +218,8 @@ else fi #zlib +download_file "https://github.com/madler/zlib/archive/v$ZLIB_VERSION.tar.gz" | tar -zx >> "$DIR/install.log" 2>&1 echo -n "[zlib] downloading $ZLIB_VERSION..." -download_file "http://zlib.net/zlib-$ZLIB_VERSION.tar.gz" | tar -zx >> "$DIR/install.log" 2>&1 mv zlib-$ZLIB_VERSION zlib echo -n " checking..." cd zlib