[svn-r6639] Purpose:

Fix

Description:
    There are some Fortran compilers which don't have a module flag.

Solution:
    If they don't have one, then don't specify it on the line. Also added
    the LDFLAGS to the compile line so that we pick up the proper
    libraries and their directories.

Platforms tested:
    Modi4 (Parallel & Fortran)
    Burrwhite (Fortran & C++)
    Baldric (Fortran), but make check didn't work because of "libucb.so"
    error that I can't fix...)

Misc. update:
This commit is contained in:
Bill Wendling 2003-04-11 17:12:07 -05:00
parent a816333314
commit a471c1ca4a

View File

@ -195,10 +195,16 @@ if test "x$do_compile" = "xyes"; then
fi
if test "x$do_link" = "xyes"; then
# It's possible that there isn't a modules flag...
fmodules=""
if test -n "$F9XMODFLAG"; then
fmodules="${F9XMODFLAG}${libdir}"
fi
link_args="$link_args ${libdir}/libhdf5_fortran.a ${libdir}/libhdf5.a"
link_args="$link_args $LIBS"
$SHOW $FLINKER ${F9XMODFLAG}${libdir} $link_objs $link_args
$SHOW $FLINKER ${fmodules} $link_objs $link_args ${LDFLAGS}
status=$?
fi