diff --git a/src/build/compile.sh b/src/build/compile.sh index 24e3dc38a..238ec04ee 100755 --- a/src/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"