summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2014-10-07 16:35:58 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2014-10-07 16:35:58 (GMT)
commit964515961446b6e0968dbe40f0588f9a43e1717e (patch)
tree241b6838f51ac4c037e7244a95fca50fdf3e7971
parentab33b7f34dbae5042eb720b106962677157d5c9c (diff)
downloadhdf5-964515961446b6e0968dbe40f0588f9a43e1717e.zip
hdf5-964515961446b6e0968dbe40f0588f9a43e1717e.tar.gz
hdf5-964515961446b6e0968dbe40f0588f9a43e1717e.tar.bz2
[svn-r25677] 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: wren with and without --enable-production.
-rw-r--r--config/apple16
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)