summaryrefslogtreecommitdiffstats
path: root/fortran/src/h5fc.in
diff options
context:
space:
mode:
Diffstat (limited to 'fortran/src/h5fc.in')
-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