summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2005-01-18 17:26:20 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2005-01-18 17:26:20 (GMT)
commitf505b1c23ca88153aa04bc531fb297e596ae2bc9 (patch)
tree0cd5d18d57a9a7dab053e922f696ef22efcb80e4
parenta2f3dc2accdd212bd53ad94b97bdaa766b064691 (diff)
downloadhdf5-f505b1c23ca88153aa04bc531fb297e596ae2bc9.zip
hdf5-f505b1c23ca88153aa04bc531fb297e596ae2bc9.tar.gz
hdf5-f505b1c23ca88153aa04bc531fb297e596ae2bc9.tar.bz2
[svn-r9831] Purpose: Enhancement
Description: h5fc didn't know what to do when *.a file is provided Solution: Added *.a to the link flags Platforms tested: arabica Misc. update:
-rwxr-xr-xfortran/src/h5fc.in11
1 files changed, 7 insertions, 4 deletions
diff --git a/fortran/src/h5fc.in b/fortran/src/h5fc.in
index 0d80ae8..5ec7c91 100755
--- a/fortran/src/h5fc.in
+++ b/fortran/src/h5fc.in
@@ -185,14 +185,17 @@ for arg in $@ ; do
do_link="yes"
link_objs="$link_objs $arg"
fi
+ elif test "x$ext" = "x.a"; then
+ # This is an archive that we're linking in
+ libraries=" $libraries $arg "
+ else
+ compile_args="$compile_args $arg"
+ link_args="$link_args $arg"
+ fi
else
compile_args="$compile_args $arg"
link_args="$link_args $arg"
fi
- else
- compile_args="$compile_args $arg"
- link_args="$link_args $arg"
- fi
;;
esac
done