From 6f2b6f8d07fc19f4807b9fe006a4af21382c1a93 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Fri, 3 Oct 2014 17:16:24 -0500 Subject: [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. --- config/apple | 16 +++++++++++++--- 1 file 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) -- cgit v0.12