[svn-r23441] HDFFV-8245: bug fix. Snow Leopard (darwin 10.X) does not have clang++.

Reversed it to use gcc/g++ as the default C and CXX compilers for Darwin 10.X
systems.

Tested: duck (darwin 11), wren (darwin 12) and fred (darwin 10).
This commit is contained in:
Albert Cheng 2013-03-25 00:28:47 -05:00
parent 1f6cd26a93
commit 6e1122dda4

View File

@ -20,10 +20,19 @@
#
# See BlankForm in this directory for details.
# The default compiler is `clang'
# The default compiler is `clang'.
# No support for OS older than darwin 10.X.
if test "X-" = "X-$CC"; then
CC=clang
CC_BASENAME=clang
case "$host_os" in
darwin10.*) # Snow Leopard. Use gcc/g++ because clang++ is not available.
CC=gcc
CC_BASENAME=gcc
;;
*)
CC=clang
CC_BASENAME=clang
;;
esac
fi
# Figure out compiler flags