diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2013-03-25 05:28:47 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2013-03-25 05:28:47 (GMT) |
commit | 6e1122dda4e446f6e9ad9ce4a9c2da8d40e441e3 (patch) | |
tree | 9bbea9cff5e2d1e8e4e06d3f4018fc3b92777c98 /config/apple | |
parent | 1f6cd26a93875c34d3a43921fe0d9637879b15ae (diff) | |
download | hdf5-6e1122dda4e446f6e9ad9ce4a9c2da8d40e441e3.zip hdf5-6e1122dda4e446f6e9ad9ce4a9c2da8d40e441e3.tar.gz hdf5-6e1122dda4e446f6e9ad9ce4a9c2da8d40e441e3.tar.bz2 |
[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).
Diffstat (limited to 'config/apple')
-rw-r--r-- | config/apple | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/config/apple b/config/apple index d2d4663..ac93ea5 100644 --- a/config/apple +++ b/config/apple @@ -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 |