mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
b253cfbbec
Bug-ish fix Description: Spurious warnings would show up if libtool was trying to pass the -LANG:std flag to the compile line. Also, if the library is compiled with -all-static, then it would complain about not finding dlopen and friends. Solution: Used the libtool -Wc,<flag> option to pass the -LANG:std flag to the compile line. Used ``-dlopen self'' when compiling. Platforms tested: Linux
30 lines
702 B
Bash
30 lines
702 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 -Wc,-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
|