summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2014-10-01 22:26:02 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2014-10-01 22:26:02 (GMT)
commit40c17513405c1056c90b7324a954df2a217efd65 (patch)
treeaf80011c5e64a595767869c82c59d716fcb568df /config
parent4c5cbf9719c69a608f343a049509cb663bd69d75 (diff)
downloadhdf5-40c17513405c1056c90b7324a954df2a217efd65.zip
hdf5-40c17513405c1056c90b7324a954df2a217efd65.tar.gz
hdf5-40c17513405c1056c90b7324a954df2a217efd65.tar.bz2
[svn-r25652] 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