From cbd0112b16e4da4811226beb03144db4c5ed10d2 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Wed, 1 Oct 2014 23:30:53 -0500 Subject: [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. --- config/apple | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 -- cgit v0.12