diff options
-rwxr-xr-x | fortran/src/h5fc.in | 11 |
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 |