diff --git a/src/PocketMine/build/compile.sh b/src/build/compile.sh old mode 100755 new mode 100644 similarity index 99% rename from src/PocketMine/build/compile.sh rename to src/build/compile.sh index 24e3dc38a..238ec04ee --- a/src/PocketMine/build/compile.sh +++ b/src/build/compile.sh @@ -47,7 +47,7 @@ COMPILE_CURL="default" COMPILE_LIBEDIT="no" IS_CROSSCOMPILE="no" DO_OPTIMIZE="no" -while getopts "t:oj:cxf::" OPTION; do +while getopts "::t:oj:cxff:" OPTION; do case $OPTION in t) echo "[opt] Set target to $OPTARG" @@ -77,7 +77,7 @@ while getopts "t:oj:cxf::" OPTION; do echo "[opt] Enabling abusive optimizations..." DO_OPTIMIZE="yes" ffast_math="-fno-math-errno -funsafe-math-optimizations -fno-trapping-math -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fcx-limited-range" #workaround SQLite3 fail - CFLAGS="$CFLAGS -O2 -DSQLITE_HAVE_ISNAN $ffast_math -fno-signed-zeros -finline-functions -funsafe-loop-optimizations -fomit-frame-pointer -frename-registers -funroll-loops -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-vectorize -ftracer -ftree-loop-im -ftree-parallelize-loops=4 -fomit-frame-pointer" + CFLAGS="$CFLAGS -O2 -DSQLITE_HAVE_ISNAN $ffast_math -fno-signed-zeros -finline-functions -funsafe-loop-optimizations -fomit-frame-pointer -frename-registers -funroll-loops -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-vectorize -ftracer -ftree-loop-im -fivopts -ftree-parallelize-loops=4 -fomit-frame-pointer" if [ "$OPTARG" == "arm" ]; then CFLAGS="$CFLAGS -mfloat-abi=softfp -mfpu=vfp" elif [ "$OPTARG" == "x86_64" ]; then @@ -169,7 +169,7 @@ elif [ "$COMPILE_TARGET" == "rpi" ]; then elif [ "$COMPILE_TARGET" == "mac" ] || [ "$COMPILE_TARGET" == "mac32" ]; then [ -z "$march" ] && march=prescott; [ -z "$mtune" ] && mtune=generic; - [ -z "$CFLAGS" ] && CFLAGS="-m32 -arch i686 -fomit-frame-pointer -mmacosx-version-min=10.5"; + [ -z "$CFLAGS" ] && CFLAGS="-m32 -arch i386 -fomit-frame-pointer -mmacosx-version-min=10.5"; [ -z "$LDFLAGS" ] && LDFLAGS="-Wl,-rpath,@loader_path/../lib"; export DYLD_LIBRARY_PATH="@loader_path/../lib" OPENSSL_TARGET="darwin-i386-cc" diff --git a/src/PocketMine/build/installer.sh b/src/build/installer.sh old mode 100755 new mode 100644 similarity index 100% rename from src/PocketMine/build/installer.sh rename to src/build/installer.sh diff --git a/src/PocketMine/build/jenkins.sh b/src/build/jenkins.sh old mode 100755 new mode 100644 similarity index 98% rename from src/PocketMine/build/jenkins.sh rename to src/build/jenkins.sh index 1e17307d4..f3e13c283 --- a/src/PocketMine/build/jenkins.sh +++ b/src/build/jenkins.sh @@ -69,7 +69,7 @@ then rm -rf libtool-2.4.2 export LIBTOOL="$COMPILEDIR/mac/libtool/bin/libtool" export LIBTOOLIZE="$COMPILEDIR/mac/libtool/bin/libtoolize" - $SCRIPT -t mac32 -o -j 1 -c -f x86 + $SCRIPT -t mac32 -o -j 1 -c -f tar -czf PHP_${PHP_VERSION}_x86_MacOS.tar.gz bin/ cp -r $COMPILEDIR/mac32/{install.log,PHP_${PHP_VERSION}_x86_MacOS.tar.gz,install_data/*} $ARCHIVE/mac32/ @@ -92,7 +92,7 @@ then rm -rf libtool-2.4.2 export LIBTOOL="$COMPILEDIR/mac/libtool/bin/libtool" export LIBTOOLIZE="$COMPILEDIR/mac/libtool/bin/libtoolize" - $SCRIPT -t mac64 -o -j 1 -c -f x86_64 + $SCRIPT -t mac64 -o -j 1 -c -f tar -czf PHP_${PHP_VERSION}_x86-64_MacOS.tar.gz bin/ cp -r $COMPILEDIR/mac64/{install.log,PHP_${PHP_VERSION}_x86-64_MacOS.tar.gz,install_data/*} $ARCHIVE/mac64