summaryrefslogtreecommitdiffstats
path: root/c++
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2003-11-19 15:13:02 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2003-11-19 15:13:02 (GMT)
commit649ddde342329272100b74c7be0cd3c9fc5f8793 (patch)
tree3ba471cb3e277971fa8e86e2ee62e543bc907317 /c++
parent74996193eb5dcb241267b2030ac9b073d001ba71 (diff)
downloadhdf5-649ddde342329272100b74c7be0cd3c9fc5f8793.zip
hdf5-649ddde342329272100b74c7be0cd3c9fc5f8793.tar.gz
hdf5-649ddde342329272100b74c7be0cd3c9fc5f8793.tar.bz2
[svn-r7856]
Purpose: Bug fix Description: If using g++ on HP-UX, the flags for aCC would be placed on the command line. This was causing g++ to fail the configuration test. Solution: CHanged the test so that it's a case statement. If it's the aCC compiler, then use those flags. Otherwise, don't specify flags. This case statement can be modified to provide compiler-specific flags in a similar way to other config/* files. Platforms tested: Hp-UX (Hp-UX specific change.) Misc. update:
Diffstat (limited to 'c++')
-rw-r--r--c++/config/hpux11.0018
1 files changed, 14 insertions, 4 deletions
diff --git a/c++/config/hpux11.00 b/c++/config/hpux11.00
index 6f817c1..107e725 100644
--- a/c++/config/hpux11.00
+++ b/c++/config/hpux11.00
@@ -11,8 +11,9 @@ if test -z "$CXX"; then
CXX_BASENAME=aCC
fi
-if test -z "$cxx_flags_set"; then
-# +Z for PIC, +A for using archived libraries
+case "$CXX" in
+ aCC)
+ # +Z for PIC, +A for using archived libraries
CXXFLAGS="$CXXFLAGS +Z +A"
CFLAGS="$CFLAGS -g +O2"
DEBUG_CXXFLAGS=-g
@@ -20,5 +21,14 @@ if test -z "$cxx_flags_set"; then
PROD_CXXFLAGS="-O -s"
PROD_CPPFLAGS=
PROFILE_CPPFLAGS=
- cxx_flags_set=yes
-fi
+ ;;
+ *)
+ CXXFLAGS="$CXXFLAGS"
+ CFLAGS="$CFLAGS"
+ DEBUG_CXXFLAGS=-g
+ DEBUG_CPPFLAGS=
+ PROD_CXXFLAGS=
+ PROD_CPPFLAGS=
+ PROFILE_CPPFLAGS=
+ ;;
+esac