summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2014-10-02 04:30:53 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2014-10-02 04:30:53 (GMT)
commitcbd0112b16e4da4811226beb03144db4c5ed10d2 (patch)
tree2ba258a735f8fd6241b9d56429c46ebb05d2d50f /config
parent87bed2c75284cfb13a1e88f34e48103d6614eedc (diff)
downloadhdf5-cbd0112b16e4da4811226beb03144db4c5ed10d2.zip
hdf5-cbd0112b16e4da4811226beb03144db4c5ed10d2.tar.gz
hdf5-cbd0112b16e4da4811226beb03144db4c5ed10d2.tar.bz2
[svn-r25654] Bug fix: HDFFV-8933
Description: Mac has changed to use the clang/clang++ compilers but compiler settings for production, debug and profile were not setup. Solution: Setup default values for PROD_CFLAGS, PROD_CPPFLAGS, DEBUG_CFLAGS, DEBUG_CPPFLAGS. PROFILE_CFLAGS and PROFILE_CPPFLAGS were set too but clang does not -pg or such for profiling. Need to fix it later. Tested: duck, swallow, and quail using --enable-production.
Diffstat (limited to 'config')
-rw-r--r--config/apple14
1 files changed, 14 insertions, 0 deletions
diff --git a/config/apple b/config/apple
index ac93ea5..be0e9f9 100644
--- a/config/apple
+++ b/config/apple
@@ -31,6 +31,20 @@ if test "X-" = "X-$CC"; then
*)
CC=clang
CC_BASENAME=clang
+
+ # Production
+ PROD_CFLAGS="-O3"
+ PROD_CPPFLAGS="-O3"
+
+ # Debug
+ DEBUG_CFLAGS="-g -O0"
+ DEBUG_CPPFLAGS="-g -O0"
+
+ # Profile
+ # Use this for profiling with gprof
+ # Just "-g" for now. More later.
+ PROFILE_CFLAGS="-g"
+ PROFILE_CPPFLAGS="-g"
;;
esac
fi