summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-08-05 23:02:26 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-08-05 23:02:26 (GMT)
commit095a6977f4695e298c6de193c7e9b25f0391cc1b (patch)
treef04f80d1fc4c05c4edb91939bbadcec05fed05aa /config
parent6c517b75580ff9a43b7c834c896df5a4b72287db (diff)
downloadhdf5-095a6977f4695e298c6de193c7e9b25f0391cc1b.zip
hdf5-095a6977f4695e298c6de193c7e9b25f0391cc1b.tar.gz
hdf5-095a6977f4695e298c6de193c7e9b25f0391cc1b.tar.bz2
[svn-r9031] Purpose:
Improvement. Description: setup default setting for C++ API. Default to use the ecc compiler. Platforms tested: Tested in TG-ncsa which is the IA64 platform. None of the standard committest platforms would have tested this change. Misc. update:
Diffstat (limited to 'config')
-rw-r--r--config/ia64-linux-gnu33
1 files changed, 33 insertions, 0 deletions
diff --git a/config/ia64-linux-gnu b/config/ia64-linux-gnu
index 77faf0c..938466c 100644
--- a/config/ia64-linux-gnu
+++ b/config/ia64-linux-gnu
@@ -99,3 +99,36 @@ if test "X$f9x_flags_set" = "X"; then
PROFILE_FFLAGS=""
f9x_flags_set=yes
fi
+
+
+# The Default settings for C++
+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
+
+