Files
hdf5/c++/config/hpux11.00
Bill Wendling 649ddde342 [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:
2003-11-19 10:13:02 -05:00

35 lines
770 B
Bash

# -*- shell-script -*-
#
# This file is part of the HDF5 build script. It is processed shortly
# after configure starts and defines, among other things, flags for
# the various compile modes.
#
# See BlankForm in this directory for details.
if test -z "$CXX"; then
CXX=aCC
CXX_BASENAME=aCC
fi
case "$CXX" in
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=-g
DEBUG_CPPFLAGS=
PROD_CXXFLAGS=
PROD_CPPFLAGS=
PROFILE_CPPFLAGS=
;;
esac