From a471c1ca4af28ff9609cdcccf1b8118e683c94c2 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 11 Apr 2003 17:12:07 -0500 Subject: [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: --- fortran/src/h5fc.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fortran/src/h5fc.in b/fortran/src/h5fc.in index 527ed22..6046ee0 100755 --- a/fortran/src/h5fc.in +++ b/fortran/src/h5fc.in @@ -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 -- cgit v0.12