mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
[svn-r8037] Purpose:
Improvement. Description: Added the -tlocal to the default settings for CXX flags. Platforms tested: Only tested in LANL Q. Misc. update:
This commit is contained in:
parent
850696344c
commit
c81f060deb
@ -122,3 +122,31 @@ fi
|
||||
|
||||
# The default C++ compiler
|
||||
|
||||
if test -z "$CXX"; then
|
||||
CXX=cxx
|
||||
CXX_BASENAME=cxx
|
||||
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=
|
||||
;;
|
||||
|
||||
*)
|
||||
CXXFLAGS="$CXXFLAGS -tlocal"
|
||||
DEBUG_CXXFLAGS="-g"
|
||||
DEBUG_CPPFLAGS=
|
||||
PROD_CXXFLAGS="-O"
|
||||
PROD_CPPFLAGS=
|
||||
PROFILE_CXXFLAGS="-pg"
|
||||
PROFILE_CPPFLAGS=
|
||||
;;
|
||||
esac
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user