fixed freebsd errors

This commit is contained in:
TLINDEN 2013-12-25 16:08:15 +01:00
parent 2ba63b6937
commit 3a4d1a3769

View File

@ -47,17 +47,22 @@ if [ "$HOST_CC" ]; then
fi fi
if [ -z "$MAKE" ]; then if [ -z "$MAKE" ]; then
if [ "$(expr substr $(uname -s) 1 7)" = "MINGW32" ]; then if uname -s | grep -i MINGW32 > /dev/null 2>&1; then
MAKE=mingw32-make MAKE=mingw32-make
else else
MAKE=make if type gmake > /dev/null 2>&1; then
MAKE=gmake
else
MAKE=make
fi
fi fi
fi fi
if [ -z "$CC" ]; then if [ -z "$CC" ]; then
if [ $FORMAT_COMPILER_TARGET = "osx" ]; then if [ $FORMAT_COMPILER_TARGET = "osx" ]; then
CC=clang CC=clang
elif [ "$(expr substr $(uname -s) 1 7)" = "MINGW32" ]; then elif uname -s | grep -i MINGW32 > /dev/null 2>&1; then
CC=mingw32-gcc CC=mingw32-gcc
else else
CC=gcc CC=gcc
@ -65,16 +70,16 @@ if [ -z "$CC" ]; then
fi fi
if [ -z "$CXX" ]; then if [ -z "$CXX" ]; then
if [ $FORMAT_COMPILER_TARGET = "osx" ]; then if [ $FORMAT_COMPILER_TARGET = "osx" ]; then
CXX=c++ CXX=c++
CXX11="clang++ -std=c++11 -stdlib=libc++" CXX11="clang++ -std=c++11 -stdlib=libc++"
elif [ "$(expr substr $(uname -s) 1 7)" = "MINGW32" ]; then elif uname -s | grep -i MINGW32 > /dev/null 2>&1; then
CXX=mingw32-g++ CXX=mingw32-g++
CXX11=mingw32-g++ CXX11=mingw32-g++
else else
CXX=g++ CXX=g++
CXX11=g++ CXX11=g++
fi fi
fi fi
FORMAT_COMPILER_TARGET_ALT=$FORMAT_COMPILER_TARGET FORMAT_COMPILER_TARGET_ALT=$FORMAT_COMPILER_TARGET