From 9cab86540b163e1062b00d1263db5f48c449c86c Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sat, 29 Mar 2014 04:10:52 +0100 Subject: [PATCH] Update compile.sh --- src/build/compile.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/build/compile.sh b/src/build/compile.sh index 13ac62508..8c4e7a361 100755 --- a/src/build/compile.sh +++ b/src/build/compile.sh @@ -152,7 +152,7 @@ if [ "$IS_CROSSCOMPILE" == "yes" ]; then TOOLCHAIN_PREFIX="arm-linux-gnueabihf" [ -z "$march" ] && march=armv6zk; [ -z "$mtune" ] && mtune=arm1176jzf-s; - [ -z "$CFLAGS" ] && CFLAGS="-mfloat-abi=hard -mfpu=vfp"; + CFLAGS="$CFLAGS -mfloat-abi=hard -mfpu=vfp"; if [ "$DO_OPTIMIZE" == "yes" ]; then CFLAGS="$CFLAGS -mfloat-abi=hard -mfpu=vfp" fi @@ -164,7 +164,7 @@ if [ "$IS_CROSSCOMPILE" == "yes" ]; then elif [ "$COMPILE_TARGET" == "mac" ]; then [ -z "$march" ] && march=prescott; [ -z "$mtune" ] && mtune=generic; - [ -z "$CFLAGS" ] && CFLAGS="-fomit-frame-pointer"; + CFLAGS="$CFLAGS -fomit-frame-pointer"; TOOLCHAIN_PREFIX="i686-apple-darwin10" export CC="$TOOLCHAIN_PREFIX-gcc" CONFIGURE_FLAGS="--host=$TOOLCHAIN_PREFIX" @@ -212,16 +212,16 @@ elif [ "$COMPILE_TARGET" == "linux64" ]; then elif [ "$COMPILE_TARGET" == "rpi" ]; then [ -z "$march" ] && march=armv6zk; [ -z "$mtune" ] && mtune=arm1176jzf-s; - [ -z "$CFLAGS" ] && CFLAGS="-mfloat-abi=hard -mfpu=vfp"; + CFLAGS="$CFLAGS -mfloat-abi=hard -mfpu=vfp"; OPENSSL_TARGET="linux-armv4" echo "[INFO] Compiling for Raspberry Pi ARMv6zk hard float" elif [ "$COMPILE_TARGET" == "mac" ] || [ "$COMPILE_TARGET" == "mac32" ]; then #[ -z "$march" ] && march=prescott; #[ -z "$mtune" ] && mtune=generic; - [ -z "$march" ] && march=i386; - [ -z "$mtune" ] && mtune=generic; - [ -z "$CFLAGS" ] && CFLAGS="-m32 -arch i386 -fomit-frame-pointer -mmacosx-version-min=10.5"; - [ -z "$LDFLAGS" ] && LDFLAGS="-Wl,-rpath,@loader_path/../lib"; + #[ -z "$march" ] && march=i386; + #[ -z "$mtune" ] && mtune=generic; + CFLAGS="$CFLAGS -m32 -arch i386 -fomit-frame-pointer -mmacosx-version-min=10.5"; + LDFLAGS="$LDFLAGS -Wl,-rpath,@loader_path/../lib"; export DYLD_LIBRARY_PATH="@loader_path/../lib" OPENSSL_TARGET="darwin-i386-cc" CFLAGS="$CFLAGS -Qunused-arguments -Wno-error=unused-command-line-argument-hard-error-in-future" @@ -230,8 +230,8 @@ elif [ "$COMPILE_TARGET" == "mac" ] || [ "$COMPILE_TARGET" == "mac32" ]; then elif [ "$COMPILE_TARGET" == "mac64" ]; then [ -z "$march" ] && march=core2; [ -z "$mtune" ] && mtune=generic; - [ -z "$CFLAGS" ] && CFLAGS="-m64 -arch x86-64 -fomit-frame-pointer -mmacosx-version-min=10.5"; - [ -z "$LDFLAGS" ] && LDFLAGS="-Wl,-rpath,@loader_path/../lib"; + CFLAGS="$CFLAGS -m64 -arch x86-64 -fomit-frame-pointer -mmacosx-version-min=10.5"; + LDFLAGS="$LDFLAGS -Wl,-rpath,@loader_path/../lib"; export DYLD_LIBRARY_PATH="@loader_path/../lib" OPENSSL_TARGET="darwin64-x86_64-cc" CFLAGS="$CFLAGS -Qunused-arguments -Wno-error=unused-command-line-argument-hard-error-in-future"