Improvement Description: Removed "-D__GNUC__" which was a patch for previous version. It is no longer needed. Also moved the debug flags "-w2 and -Wall" to DEBUG_CXXFLAGS so that they are used for debug mode only. Also adjust CXXFLAGS setting so that -std=c99 is added only if user has not preset CXXFLAGS. This allows users the option of not using it. Platforms tested: Tested in tg-NCSA only since that is the only ia64 platform around. Misc. update:
31 lines
560 B
Plaintext
Executable File
31 lines
560 B
Plaintext
Executable File
|
|
if test -z "$CXX"; then
|
|
CXX=ecc
|
|
CXX_BASENAME=ecc
|
|
fi
|
|
|
|
|
|
case $CXX_BASENAME in
|
|
g++)
|
|
CXXFLAGS="$CXXFLAGS -Wsign-compare" #Only works for some versions
|
|
DEBUG_CXXFLAGS="-g -fverbose-asm"
|
|
DEBUG_CPPFLAGS=
|
|
PROD_CXXFLAGS="-O3 -fomit-frame-pointer"
|
|
PROD_CPPFLAGS=
|
|
PROFILE_CXXFLAGS="-pg"
|
|
PROFILE_CPPFLAGS=
|
|
;;
|
|
|
|
*)
|
|
# Default to C99 standard.
|
|
CXXFLAGS="${CXXFLAGS:--std=c99}"
|
|
DEBUG_CXXFLAGS="-g -w2 -Wall"
|
|
DEBUG_CPPFLAGS=
|
|
PROD_CXXFLAGS="" #Default optimization O2 is used
|
|
PROD_CPPFLAGS=
|
|
PROFILE_CXXFLAGS="-pg"
|
|
PROFILE_CPPFLAGS=
|
|
;;
|
|
esac
|
|
|