Kaydet (Commit) c22c4b5b authored tarafından Tor Lillqvist's avatar Tor Lillqvist

No need for a case statement here

Change-Id: I9656cf20d034d8b33bee117c809713923179f26b
üst 26cb920c
...@@ -2787,22 +2787,18 @@ if test $_os = Darwin; then ...@@ -2787,22 +2787,18 @@ if test $_os = Darwin; then
INSTALL_NAME_TOOL=install_name_tool INSTALL_NAME_TOOL=install_name_tool
if test -z "$save_CC"; then if test -z "$save_CC"; then
AC_MSG_CHECKING([what compiler to use]) AC_MSG_CHECKING([what compiler to use])
case $with_macosx_sdk in stdlib=-stdlib=libc++
10.8|10.9|10.10) if test "$ENABLE_LTO" = TRUE; then
stdlib=-stdlib=libc++ lto=-flto
if test "$ENABLE_LTO" = TRUE; then fi
lto=-flto CC="`xcrun -find clang` -m64 $lto -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH"
fi CXX="`xcrun -find clang++` -m64 $lto $stdlib -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH"
CC="`xcrun -find clang` -m64 $lto -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH" INSTALL_NAME_TOOL=`xcrun -find install_name_tool`
CXX="`xcrun -find clang++` -m64 $lto $stdlib -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH" AR=`xcrun -find ar`
INSTALL_NAME_TOOL=`xcrun -find install_name_tool` NM=`xcrun -find nm`
AR=`xcrun -find ar` STRIP=`xcrun -find strip`
NM=`xcrun -find nm` LIBTOOL=`xcrun -find libtool`
STRIP=`xcrun -find strip` RANLIB=`xcrun -find ranlib`
LIBTOOL=`xcrun -find libtool`
RANLIB=`xcrun -find ranlib`
;;
esac
AC_MSG_RESULT([$CC and $CXX]) AC_MSG_RESULT([$CC and $CXX])
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