mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-13 16:47:58 +08:00
[svn-r7857] 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:
This commit is contained in:
parent
b303888f43
commit
d01db86174
@ -74,14 +74,25 @@ if test -z "$CXX"; then
|
||||
CXX_BASENAME=aCC
|
||||
fi
|
||||
|
||||
if test -z "$cxx_flags_set"; then
|
||||
# +Z for PIC, +A for using archived libraries
|
||||
CXXFLAGS="$CXXFLAGS +Z +A"
|
||||
CFLAGS="$CFLAGS -g +O2"
|
||||
DEBUG_CXXFLAGS=-g
|
||||
DEBUG_CPPFLAGS=
|
||||
PROD_CXXFLAGS="-O -s"
|
||||
PROD_CPPFLAGS=
|
||||
PROFILE_CPPFLAGS=
|
||||
cxx_flags_set=yes
|
||||
fi
|
||||
case "X-$CXX" in
|
||||
X-aCC)
|
||||
# +Z for PIC, +A for using archived libraries
|
||||
CXXFLAGS="$CXXFLAGS +Z +A"
|
||||
CFLAGS="$CFLAGS -g +O2"
|
||||
DEBUG_CXXFLAGS=-g
|
||||
DEBUG_CPPFLAGS=
|
||||
PROD_CXXFLAGS="-O -s"
|
||||
PROD_CPPFLAGS=
|
||||
PROFILE_CPPFLAGS=
|
||||
;;
|
||||
|
||||
*)
|
||||
CXXFLAGS="$CXXFLAGS"
|
||||
CFLAGS="$CFLAGS"
|
||||
DEBUG_CXXFLAGS=
|
||||
DEBUG_CPPFLAGS=
|
||||
PROD_CXXFLAGS=
|
||||
PROD_CPPFLAGS=
|
||||
PROFILE_CPPFLAGS=
|
||||
;;
|
||||
esac
|
||||
|
Loading…
x
Reference in New Issue
Block a user