summaryrefslogtreecommitdiffstats
path: root/config/dec-flags
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-01-07 21:54:33 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-01-07 21:54:33 (GMT)
commitc81f060deb2fc82d33ef17a57b3a48718511bdc6 (patch)
treea1773486466a88c8443d7ad00ab3c2bd93a69997 /config/dec-flags
parent850696344ca8180ea39d2c254ce42373decb8cda (diff)
downloadhdf5-c81f060deb2fc82d33ef17a57b3a48718511bdc6.zip
hdf5-c81f060deb2fc82d33ef17a57b3a48718511bdc6.tar.gz
hdf5-c81f060deb2fc82d33ef17a57b3a48718511bdc6.tar.bz2
[svn-r8037] Purpose:
Improvement. Description: Added the -tlocal to the default settings for CXX flags. Platforms tested: Only tested in LANL Q. Misc. update:
Diffstat (limited to 'config/dec-flags')
-rw-r--r--config/dec-flags28
1 files changed, 28 insertions, 0 deletions
diff --git a/config/dec-flags b/config/dec-flags
index 291cc93..70efaa9 100644
--- a/config/dec-flags
+++ b/config/dec-flags
@@ -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
+