hdf5/c++/config/solaris2.x
Bill Wendling c834f719ef [svn-r3046] Purpose:
Reversal of Patch
Description:
	I thought that the solaris boxen could handle the -Wc,<flag> flag
	(or, rather, that libtool would do the correct thing with their
	compilers). However, this isn't the case, apparently.
Solution:
	Removed the ``-Wc,-LANG:std'' flag and put it in the CPPFLAGS
	macro instead. This should cause it to be passed to the compiler
	only...one hopes...
2000-12-01 10:44:18 -05:00

31 lines
713 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
# The default compiler is `sunpro cc'
if test -z "$CXX"; then
CXX=CC
CXX_BASENAME=CC
fi
# Try gcc compiler flags
#. $srcdir/config/gnu-flags
# Try solaris native compiler flags
if test -z "$cxx_flags_set"; then
CXXFLAGS="-instances=global"
CPPFLAGS="-LANG:std"
LIBS="$LIBS -lsocket"
DEBUG_CXXFLAGS=-g
DEBUG_CPPFLAGS=
PROD_CXXFLAGS="-O -s"
PROD_CPPFLAGS=
PROFILE_CXXFLAGS=-xpg
PROFILE_CPPFLAGS=
cxx_flags_set=yes
fi