diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2014-10-03 22:16:24 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2014-10-03 22:16:24 (GMT) |
commit | 6f2b6f8d07fc19f4807b9fe006a4af21382c1a93 (patch) | |
tree | b0040e087a3401dc5a28bcc629a728be5e528d1f /config/apple | |
parent | 8a11303560d27588154501945732dbece778aff0 (diff) | |
download | hdf5-6f2b6f8d07fc19f4807b9fe006a4af21382c1a93.zip hdf5-6f2b6f8d07fc19f4807b9fe006a4af21382c1a93.tar.gz hdf5-6f2b6f8d07fc19f4807b9fe006a4af21382c1a93.tar.bz2 |
[svn-r25667] HDFFV-8933:
Did not provide default values for clang++ options.
Also, applied wrong values for the *_CPPFLAGS.
Solution:
Added default values for *_CXXFLAGS.
Fixed the *_CPPFLAGS values.
Tested: duck, swallow, quail with --eanble-production.
Diffstat (limited to 'config/apple')
-rw-r--r-- | config/apple | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/config/apple b/config/apple index be0e9f9..5203695 100644 --- a/config/apple +++ b/config/apple @@ -34,17 +34,17 @@ if test "X-" = "X-$CC"; then # Production PROD_CFLAGS="-O3" - PROD_CPPFLAGS="-O3" + PROD_CPPFLAGS= # Debug DEBUG_CFLAGS="-g -O0" - DEBUG_CPPFLAGS="-g -O0" + DEBUG_CPPFLAGS= # Profile # Use this for profiling with gprof # Just "-g" for now. More later. PROFILE_CFLAGS="-g" - PROFILE_CPPFLAGS="-g" + PROFILE_CPPFLAGS= ;; esac fi @@ -103,6 +103,16 @@ if test "X-" = "X-$CXX"; then esac fi +case $CXX_BASENAME in + clang++) + PROD_CXXFLAGS="-O3" + DEBUG_CXXFLAGS="-g -O0" + # Use this for profiling with gprof + # Just "-g" for now. More later. + PROFILE_CXXFLAGS="-g" + ;; +esac + # compiler version strings case $CC in clang) |