summaryrefslogtreecommitdiffstats
path: root/fortran
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2003-04-11 22:12:07 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2003-04-11 22:12:07 (GMT)
commita471c1ca4af28ff9609cdcccf1b8118e683c94c2 (patch)
treec3cecc8304f13626699fa03c0ce29f8fa97585ef /fortran
parenta816333314ff519729609992493fd46a1ee9bdaa (diff)
downloadhdf5-a471c1ca4af28ff9609cdcccf1b8118e683c94c2.zip
hdf5-a471c1ca4af28ff9609cdcccf1b8118e683c94c2.tar.gz
hdf5-a471c1ca4af28ff9609cdcccf1b8118e683c94c2.tar.bz2
[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:
Diffstat (limited to 'fortran')
-rwxr-xr-xfortran/src/h5fc.in8
1 files changed, 7 insertions, 1 deletions
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