mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
[svn-r7854] Purpose:
Bug Fix Description: The FFLAGS, CXXFLAGS, and CPPFLAGS variables weren't carrying user-defined values into the Makefiles. Solution: Changed the flags from FOO="..." to FOO="$FOO ..." Platforms tested: Copper Verbena Arabica Misc. update:
This commit is contained in:
parent
a9d0aadef0
commit
b303888f43
@ -86,7 +86,7 @@ fi
|
||||
if test "X-" = "X-$f9x_flags_set"; then
|
||||
F9XSUFFIXFLAG=""
|
||||
FSEARCH_DIRS=""
|
||||
FFLAGS="-Olimit 2048 -std1"
|
||||
FFLAGS="$FFLAGS -Olimit 2048 -std1"
|
||||
DEBUG_FFLAGS="-Olimit 2048 -std1"
|
||||
PROD_FFLAGS="-Olimit 2048 -std1"
|
||||
PROFILE_FFLAGS="-Olimit 2048 -std1"
|
||||
|
@ -60,7 +60,7 @@ fi
|
||||
if test "X-" = "X-$f9x_flags_set"; then
|
||||
F9XSUFFIXFLAG=""
|
||||
FSEARCH_DIRS=""
|
||||
FFLAGS="-O"
|
||||
FFLAGS="$FFLAGS -O"
|
||||
DEBUG_FFLAGS="-O"
|
||||
PROD_FFLAGS="-O"
|
||||
PROFILE_FFLAGS="-O"
|
||||
|
@ -60,7 +60,7 @@ fi
|
||||
if test "X$f9x_flags_set" = "X"; then
|
||||
F9XSUFFIXFLAG=""
|
||||
FSEARCH_DIRS=""
|
||||
FFLAGS="-O"
|
||||
FFLAGS="$FFLAGS -O"
|
||||
DEBUG_FFLAGS="-O"
|
||||
PROD_FFLAGS="-O"
|
||||
PROFILE_FFLAGS="-O"
|
||||
@ -76,8 +76,8 @@ fi
|
||||
|
||||
if test -z "$cxx_flags_set"; then
|
||||
# +Z for PIC, +A for using archived libraries
|
||||
CXXFLAGS="+Z +A"
|
||||
CFLAGS="-g +O2"
|
||||
CXXFLAGS="$CXXFLAGS +Z +A"
|
||||
CFLAGS="$CFLAGS -g +O2"
|
||||
DEBUG_CXXFLAGS=-g
|
||||
DEBUG_CPPFLAGS=
|
||||
PROD_CXXFLAGS="-O -s"
|
||||
|
@ -68,7 +68,8 @@ case $F9X in
|
||||
*efc)
|
||||
# this is for efc v7. Older efc do not work with these.
|
||||
# -Vaxlib is for non-standard fortran calls like exit().
|
||||
FFLAGS='-fpp -DDEC$=DEC_ -DMS$=MS_ -Vaxlib'
|
||||
MORE_FFLAGS='-fpp -DDEC$=DEC_ -DMS$=MS_ -Vaxlib'
|
||||
FFLAGS="$FFLAGS $MORE_FFLAGS"
|
||||
HSIZE_T='SELECTED_INT_KIND(R_LARGE)'
|
||||
HSSIZE_T='SELECTED_INT_KIND(R_LARGE)'
|
||||
HID_T='SELECTED_INT_KIND(R_INTEGER)'
|
||||
@ -91,7 +92,7 @@ esac
|
||||
if test "X$f9x_flags_set" = "X"; then
|
||||
F9XSUFFIXFLAG=""
|
||||
FSEARCH_DIRS=""
|
||||
FFLAGS=""
|
||||
FFLAGS="$FFLAGS"
|
||||
DEBUG_FFLAGS=""
|
||||
PROD_FFLAGS=""
|
||||
PROFILE_FFLAGS=""
|
||||
|
@ -105,7 +105,7 @@ fi
|
||||
if test "X-" = "X-$f9x_flags_set"; then
|
||||
F9XSUFFIXFLAG=""
|
||||
FSEARCH_DIRS=""
|
||||
FFLAGS="-64 -mips4 -O -s"
|
||||
FFLAGS="$FFLAGS -64 -mips4 -O -s"
|
||||
DEBUG_FFLAGS="-64 -mips4 -O -s"
|
||||
PROD_FFLAGS="-64 -mips4 -O -s"
|
||||
PROFILE_FFLAGS="-64 -mips4 -O -s"
|
||||
@ -124,7 +124,7 @@ fi
|
||||
if test -z "$cxx_flags_set"; then
|
||||
# -LANG:std required for std use; -ptused causes templates used to be
|
||||
# instantiated
|
||||
CPPFLAGS="-LANG:std -ptused"
|
||||
CPPFLAGS="$CPPFLAGS -LANG:std -ptused"
|
||||
|
||||
# libCio is a default library, since libtool before 1.5 doesn't fully
|
||||
# support C++ yet, default libraries must be explicitly specified.
|
||||
|
@ -43,7 +43,7 @@ fi
|
||||
if test -z "$f9x_flags_set"; then
|
||||
F9XSUFFIXFLAG=""
|
||||
FSEARCH_DIRS=""
|
||||
FFLAGS=""
|
||||
FFLAGS="$FFLAGS"
|
||||
DEBUG_FFLAGS=""
|
||||
PROD_FFLAGS=""
|
||||
PROFILE_FFLAGS=""
|
||||
|
@ -107,7 +107,7 @@ fi
|
||||
|
||||
if test "X-" = "X-$f9x_flags_set"; then
|
||||
F9XSUFFIXFLAG="-qsuffix=f=f90"
|
||||
FFLAGS="-static -O ${F9XSUFFIXFLAG} -qmoddir=./ -k"
|
||||
FFLAGS="$FFLAGS -static -O ${F9XSUFFIXFLAG} -qmoddir=./ -k"
|
||||
FSEARCH_DIRS="-I./ -I../src"
|
||||
DEBUG_FFLAGS="-O"
|
||||
PROD_FFLAGS="-O"
|
||||
|
@ -138,7 +138,7 @@ fi
|
||||
|
||||
if test "X-" = "X-$f9x_flags_set"; then
|
||||
F9XSUFFIXFLAG="-qsuffix=f=f90"
|
||||
FFLAGS="-static -O ${F9XSUFFIXFLAG} -qmoddir=./ -k"
|
||||
FFLAGS="$FFLAGS -static -O ${F9XSUFFIXFLAG} -qmoddir=./ -k"
|
||||
FSEARCH_DIRS="-I./ -I../src"
|
||||
DEBUG_FFLAGS="-O"
|
||||
PROD_FFLAGS="-O"
|
||||
|
@ -34,7 +34,7 @@ fi
|
||||
|
||||
if test "X-" = "X-$f9x_flags_set"; then
|
||||
F9XSUFFIXFLAG="-qsuffix=f=f90"
|
||||
FFLAGS="-static -O ${F9XSUFFIXFLAG} -qmoddir=./ -k"
|
||||
FFLAGS="$FFLAGS -static -O ${F9XSUFFIXFLAG} -qmoddir=./ -k"
|
||||
FSEARCH_DIRS="-I./ -I../src"
|
||||
DEBUG_FFLAGS="-O"
|
||||
PROD_FFLAGS="-O"
|
||||
|
@ -17,7 +17,7 @@ fi
|
||||
|
||||
# Try solaris native compiler flags
|
||||
if test "X-" = "X-$cc_flags_set"; then
|
||||
CFLAGS="-erroff=%none -DBSD_COMP"
|
||||
CFLAGS="$CFLAGS -erroff=%none -DBSD_COMP"
|
||||
DEBUG_CFLAGS="-g -xildoff"
|
||||
DEBUG_CPPFLAGS=
|
||||
PROD_CFLAGS="-O -s"
|
||||
@ -60,7 +60,7 @@ fi
|
||||
if test "X-" = "X-$f9x_flags_set"; then
|
||||
F9XSUFFIXFLAG=""
|
||||
FSEARCH_DIRS=""
|
||||
FFLAGS=""
|
||||
FFLAGS="$FFLAGS"
|
||||
DEBUG_FFLAGS=""
|
||||
PROD_FFLAGS=""
|
||||
PROFILE_FFLAGS=""
|
||||
@ -88,14 +88,14 @@ cxx_vers_patch=`echo $cxx_version | cut -f3 -d.`
|
||||
# Specify the "-features=tmplife" if the compiler can handle this...
|
||||
if test -n "$cxx_version"; then
|
||||
if test $cxx_vers_major -ge 5 -a $cxx_vers_minor -ge 3 -o $cxx_vers_major -gt 5; then
|
||||
CXXFLAGS="-features=tmplife"
|
||||
CXXFLAGS="$CXXFLAGS -features=tmplife"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Try solaris native compiler flags
|
||||
if test -z "$cxx_flags_set"; then
|
||||
CXXFLAGS="$CXXFLAGS -instances=global"
|
||||
CPPFLAGS="-LANG:std"
|
||||
CPPFLAGS="$CPPFLAGS -LANG:std"
|
||||
DEBUG_CXXFLAGS=-g
|
||||
DEBUG_CPPFLAGS=
|
||||
PROD_CXXFLAGS="-O -s"
|
||||
|
@ -161,7 +161,7 @@ fi
|
||||
if test "X-" = "X-$f9x_flags_set"; then
|
||||
F9XSUFFIXFLAG=""
|
||||
FSEARCH_DIRS=""
|
||||
FFLAGS="-dp"
|
||||
FFLAGS="$FFLAGS -dp"
|
||||
DEBUG_FFLAGS="-dp"
|
||||
PROD_FFLAGS="-dp"
|
||||
PROFILE_FFLAGS="-dp"
|
||||
|
@ -159,7 +159,7 @@ fi
|
||||
if test "X-" = "X-$f9x_flags_set"; then
|
||||
F9XSUFFIXFLAG=""
|
||||
FSEARCH_DIRS=""
|
||||
FFLAGS="-dp"
|
||||
FFLAGS="$FFLAGS -dp"
|
||||
DEBUG_FFLAGS="-dp"
|
||||
PROD_FFLAGS="-dp"
|
||||
PROFILE_FFLAGS="-dp"
|
||||
|
@ -162,7 +162,7 @@ fi
|
||||
if test "X-" = "X-$f9x_flags_set"; then
|
||||
F9XSUFFIXFLAG=""
|
||||
FSEARCH_DIRS=""
|
||||
FFLAGS="-dp"
|
||||
FFLAGS="$FFLAGS -dp"
|
||||
DEBUG_FFLAGS="-dp"
|
||||
PROD_FFLAGS="-dp"
|
||||
PROFILE_FFLAGS="-dp"
|
||||
|
@ -162,7 +162,7 @@ fi
|
||||
if test "X-" = "X-$f9x_flags_set"; then
|
||||
F9XSUFFIXFLAG=""
|
||||
FSEARCH_DIRS=""
|
||||
FFLAGS="-dp"
|
||||
FFLAGS="$FFLAGS -dp"
|
||||
DEBUG_FFLAGS="-dp"
|
||||
PROD_FFLAGS="-dp"
|
||||
PROFILE_FFLAGS="-dp"
|
||||
|
@ -164,7 +164,7 @@ if test "X-" = "X-$f9x_flags_set"; then
|
||||
# number #. Warning 405 was stopping the executable from being built.
|
||||
F9XSUFFIXFLAG=""
|
||||
FSEARCH_DIRS=""
|
||||
FFLAGS="-dp -Wl-M405"
|
||||
FFLAGS="$FFLAGS -dp -Wl-M405"
|
||||
DEBUG_FFLAGS=""
|
||||
PROD_FFLAGS=""
|
||||
PROFILE_FFLAGS=""
|
||||
|
@ -164,7 +164,7 @@ if test "X-" = "X-$f9x_flags_set"; then
|
||||
# number #. Warning 405 and 412 were stopping the executable from being built.
|
||||
F9XSUFFIXFLAG=""
|
||||
FSEARCH_DIRS=""
|
||||
FFLAGS="-dp -Wl-M405,412"
|
||||
FFLAGS="$FFLAGS -dp -Wl-M405,412"
|
||||
DEBUG_FFLAGS=""
|
||||
PROD_FFLAGS=""
|
||||
PROFILE_FFLAGS=""
|
||||
|
@ -164,7 +164,7 @@ if test "X-" = "X-$f9x_flags_set"; then
|
||||
# number #. Warning 405 was stopping the executable from being built.
|
||||
F9XSUFFIXFLAG=""
|
||||
FSEARCH_DIRS=""
|
||||
FFLAGS="-dp -Wl-M405"
|
||||
FFLAGS="$FFLAGS -dp -Wl-M405"
|
||||
DEBUG_FFLAGS=""
|
||||
PROD_FFLAGS=""
|
||||
PROFILE_FFLAGS=""
|
||||
|
Loading…
Reference in New Issue
Block a user