Commit ed0d8303 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: set llvm-gcc as the default compiler for the contribs

parent cf44d745
...@@ -88,9 +88,9 @@ case $HOST in ...@@ -88,9 +88,9 @@ case $HOST in
echo "HAVE_DARWIN_OS = 1" >> config.mak echo "HAVE_DARWIN_OS = 1" >> config.mak
echo "HAVE_BSD = 1" >> config.mak echo "HAVE_BSD = 1" >> config.mak
if test $CONTRIBS_CC_LLVM; then if test $CONTRIBS_CC_LLVM; then
echo "DARWIN_COMPILER = LLVMGCC" >> config.mak
else
echo "DARWIN_COMPILER = GCC" >> config.mak echo "DARWIN_COMPILER = GCC" >> config.mak
else
echo "DARWIN_COMPILER = LLVMGCC" >> config.mak
fi fi
;; ;;
*linux*) *linux*)
...@@ -144,14 +144,14 @@ case $HOST in ...@@ -144,14 +144,14 @@ case $HOST in
;; ;;
powerpc-apple-darwin9) powerpc-apple-darwin9)
# Mac OS X 10.5 with Xcode 3, specific rules apply # Mac OS X 10.5 with Xcode 3, specific rules apply
if test -z "$CONTRIBS_CC_LLVM"; then if test "$CONTRIBS_CC_LLVM"; then
SDK_TARGET=10.4
else
SDK_TARGET=10.5 SDK_TARGET=10.5
else
SDK_TARGET=10.4
fi fi
echo "SDK_TARGET = ${SDK_TARGET}" >> config.mak echo "SDK_TARGET = ${SDK_TARGET}" >> config.mak
echo "ENVP = MACOSX_DEPLOYMENT_TARGET=${SDK_TARGET}" >> config.mak echo "ENVP = MACOSX_DEPLOYMENT_TARGET=${SDK_TARGET}" >> config.mak
if test -z "$CONTRIBS_CC_LLVM"; then if test "$CONTRIBS_CC_LLVM"; then
echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.4u.sdk" >> config.mak echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.4u.sdk" >> config.mak
else else
echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.5.sdk" >> config.mak echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.5.sdk" >> config.mak
...@@ -161,7 +161,7 @@ case $HOST in ...@@ -161,7 +161,7 @@ case $HOST in
CFLAGS_TUNING=" -arch ppc -mtune=G4" CFLAGS_TUNING=" -arch ppc -mtune=G4"
EXTRA_CFLAGS=" -D\${ENVP} -isysroot \${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}" EXTRA_CFLAGS=" -D\${ENVP} -isysroot \${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}"
EXTRA_LDFLAGS=" -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK}" EXTRA_LDFLAGS=" -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK}"
if test -z "$CONTRIBS_CC_LLVM"; then if test "$CONTRIBS_CC_LLVM"; then
CC="gcc" CC="gcc"
CXX="g++" CXX="g++"
else else
...@@ -179,7 +179,7 @@ case $HOST in ...@@ -179,7 +179,7 @@ case $HOST in
fi fi
;; ;;
i686-apple-darwin9) i686-apple-darwin9)
if test -z "$CONTRIBS_CC_LLVM"; then if test "$CONTRIBS_CC_LLVM"; then
SDK_TARGET=10.4 SDK_TARGET=10.4
else else
SDK_TARGET=10.5 SDK_TARGET=10.5
...@@ -194,7 +194,7 @@ case $HOST in ...@@ -194,7 +194,7 @@ case $HOST in
exit 1 exit 1
fi fi
echo "ENVP = MACOSX_DEPLOYMENT_TARGET=${SDK_TARGET}" >> config.mak echo "ENVP = MACOSX_DEPLOYMENT_TARGET=${SDK_TARGET}" >> config.mak
if test -z "$CONTRIBS_CC_LLVM"; then if test "$CONTRIBS_CC_LLVM"; then
echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.4u.sdk" >> config.mak echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.4u.sdk" >> config.mak
else else
echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.5.sdk" >> config.mak echo "MACOSX_SDK = /Developer/SDKs/MacOSX10.5.sdk" >> config.mak
...@@ -202,7 +202,7 @@ case $HOST in ...@@ -202,7 +202,7 @@ case $HOST in
CFLAGS_TUNING=" -march=pentium-m -mtune=prescott" CFLAGS_TUNING=" -march=pentium-m -mtune=prescott"
EXTRA_CFLAGS=" -D\${ENVP} -isysroot \${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}" EXTRA_CFLAGS=" -D\${ENVP} -isysroot \${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}"
EXTRA_LDFLAGS=" -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK}" EXTRA_LDFLAGS=" -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK}"
if test -z "$CONTRIBS_CC_LLVM"; then if test "$CONTRIBS_CC_LLVM"; then
CC="gcc" CC="gcc"
CXX="g++" CXX="g++"
else else
...@@ -374,7 +374,6 @@ if test -z "$CONTRIBS_RELEASE"; then ...@@ -374,7 +374,6 @@ if test -z "$CONTRIBS_RELEASE"; then
echo "*****************************************************************" echo "*****************************************************************"
else else
echo "EXTRA_CFLAGS += -DNDEBUG" >> config.mak echo "EXTRA_CFLAGS += -DNDEBUG" >> config.mak
set -x
fi fi
if test $HAVE_DARWIN_9; then if test $HAVE_DARWIN_9; then
...@@ -382,11 +381,11 @@ if test -z "$CONTRIBS_CC_LLVM"; then ...@@ -382,11 +381,11 @@ if test -z "$CONTRIBS_CC_LLVM"; then
set +x set +x
echo echo
echo "*****************************************************************" echo "*****************************************************************"
echo "* In case that you target Mac OS X 10.5 or later only, *" echo "* We are using the llvm-gcc-4.2 compiler by default on OS X, *"
echo "* we recommend to use llvm-gcc-4.2 for compilation. *" echo "* so no build will run on earlier version than Mac OS X 10.5. *"
echo "* Please run CONTRIBS_CC_LLVM=yes ./bootstrap to do so. *" echo "* *"
echo "* Please run CONTRIBS_CC_LLVM=no ./bootstrap to disable this. *"
echo "*****************************************************************" echo "*****************************************************************"
set -x
fi fi
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment