summaryrefslogtreecommitdiffstats
path: root/config/solaris2.x
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2010-09-10 05:03:01 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2010-09-10 05:03:01 (GMT)
commit70b6246eae452094aa50683900b38c11e2cfebfe (patch)
tree03fb2abc0e427cbf06aa0ccfead95d4c56ce6da5 /config/solaris2.x
parent073eb187d6589e5741065038d3f4ca3f634381d9 (diff)
downloadhdf5-70b6246eae452094aa50683900b38c11e2cfebfe.zip
hdf5-70b6246eae452094aa50683900b38c11e2cfebfe.tar.gz
hdf5-70b6246eae452094aa50683900b38c11e2cfebfe.tar.bz2
[svn-r19364] Bug Fix: ID 2019
Description: The development (--disable-production) mode ran a long time, especially on the testhdf5 (select) that exceeded the wall clock 10 minutes limits and was terminated. It turned out the development had DEBUG_CFLAG set to "-g -xildoff".\ The -xildoff was added back when h5detect had errors when -g only was used. But that bug does not exist any more since when only -g is used to build, h5detect did not fail and all tests passed. Therefore -xildoff is removed. Furthermore, when "-g -O" is used to build the library, debuggers such as dbx can still use the executable, though some debugging ability like displaying local variables is not available in optimized code. But overall execution time shorten. Therefore, the C, Fortran aand CXX DEBUG flags are all set to "-g -O" by default. Tested: in Linew using the default development mode because the changes affect only the Sun platform.
Diffstat (limited to 'config/solaris2.x')
-rw-r--r--config/solaris2.x12
1 files changed, 9 insertions, 3 deletions
diff --git a/config/solaris2.x b/config/solaris2.x
index cea71bd..edf8d59 100644
--- a/config/solaris2.x
+++ b/config/solaris2.x
@@ -32,7 +32,9 @@ fi
# Try solaris native compiler flags
if test "X-" = "X-$cc_flags_set"; then
H5_CFLAGS="$H5_CFLAGS -erroff=%none -DBSD_COMP"
- DEBUG_CFLAGS="-g -xildoff"
+ # -g produces rather slow code. "-g -O" produces much faster code with some
+ # loss of debugger functions such as not able to print local variables.
+ DEBUG_CFLAGS="-g -O"
DEBUG_CPPFLAGS=
PROD_CFLAGS="-O -s"
PROD_CPPFLAGS=
@@ -68,7 +70,9 @@ if test "X-" = "X-$f9x_flags_set"; then
F9XSUFFIXFLAG=""
FSEARCH_DIRS=""
H5_FCFLAGS="$H5_FCFLAGS"
- DEBUG_FCFLAGS="-g"
+ # -g produces rather slow code. "-g -O" produces much faster code with some
+ # loss of debugger functions such as not able to print local variables.
+ DEBUG_FCFLAGS="-g -O"
PROD_FCFLAGS="-O2"
PROFILE_FCFLAGS=""
f9x_flags_set=yes
@@ -103,7 +107,9 @@ fi
if test -z "$cxx_flags_set"; then
H5_CXXFLAGS="$H5_CXXFLAGS -instances=static"
H5_CPPFLAGS="$H5_CPPFLAGS -LANG:std"
- DEBUG_CXXFLAGS=-g
+ # -g produces rather slow code. "-g -O" produces much faster code with some
+ # loss of debugger functions such as not able to print local variables.
+ DEBUG_CXXFLAGS="-g -O"
DEBUG_CPPFLAGS=
PROD_CXXFLAGS="-O -s"
PROD_CPPFLAGS=