[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.
This commit is contained in:
Albert Cheng 2014-10-01 23:30:53 -05:00
parent 87bed2c752
commit cbd0112b16

View File

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