[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.
This commit is contained in:
Albert Cheng 2014-10-07 11:35:58 -05:00
parent ab33b7f34d
commit 9645159614

View File

@ -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)