Don't compare against true for compatibility

This commit is contained in:
twinaphex 2013-07-13 18:05:04 +02:00
parent c8e9f850ec
commit 2bde8b200c
2 changed files with 12 additions and 9 deletions

View File

@ -16,19 +16,24 @@ echo "Compiler: $COMPILER"
platformvar=armv
if [ "$ARM_NEON"= true]; then
if [ "$ARM_NEON"]; then
echo "=== ARM NEON opts enabled... ==="
platformvar += -neon
fi
if [ "$CORTEX_A8"= true]; then
if [ "$CORTEX_A8"]; then
echo "=== Cortex A8 opts enabled... ==="
platformvar += -cortexa8
fi
if [ "$CORTEX_A9"= true]; then
if [ "$CORTEX_A9"]; then
echo "=== Cortex A9 opts enabled... ==="
platformvar += -cortexa9
fi
if [ "$ARM_HARDFLOAT"= true]; then
platformvar += -cortexa9
if [ "$ARM_HARDFLOAT"]; then
echo "=== ARM hardfloat ABI enabled... ==="
platformvar += -hardfloat
fi
if [ "$ARM_SOFTFLOAT"= true]; then
if [ "$ARM_SOFTFLOAT"]; then
echo "=== ARM softfloat ABI enabled... ==="
platformvar += -softfloat
fi

View File

@ -123,9 +123,7 @@ if [ "$HOST_CC" ]; then
fi
if [ -z "$MAKE" ]; then
if [ $FORMAT_COMPILER_TARGET = "osx" ]; then
MAKE=make
elif [ "$(expr substr $(uname -s) 1 7)" = "MINGW32" ]; then
if [ "$(expr substr $(uname -s) 1 7)" = "MINGW32" ]; then
MAKE=mingw32-make
else
MAKE=make