diff --git a/c++/src/h5c++.in b/c++/src/h5c++.in index 6620e40346..aac8f40896 100755 --- a/c++/src/h5c++.in +++ b/c++/src/h5c++.in @@ -317,7 +317,7 @@ if test "x$do_link" = "xyes"; then # module. It's okay if they're included twice in the compile line. link_args="$link_args $LIBS" - $SHOW $CXXLINKER $CPPFLAGS $CXXFLAGS $LDFLAGS $clibpath $link_objs $link_args $shared_link + $SHOW $CXXLINKER $CPPFLAGS $CXXFLAGS $clibpath $link_objs $link_args $shared_link $LDFLAGS status=$? fi diff --git a/fortran/src/h5fc.in b/fortran/src/h5fc.in index 5b915d54ef..df52971b43 100755 --- a/fortran/src/h5fc.in +++ b/fortran/src/h5fc.in @@ -295,7 +295,7 @@ if test "x$do_link" = "xyes"; then # module. It's okay if they're included twice in the compile line. link_args="$link_args $LIBS" - $SHOW $FLINKER $FFLAGS $F9XSUFFIXFLAG $fmodules $LDFLAGS $link_objs $link_args $shared_link + $SHOW $FLINKER $FFLAGS $F9XSUFFIXFLAG $fmodules $link_objs $link_args $shared_link $LDFLAGS status=$? fi diff --git a/tools/misc/h5cc.in b/tools/misc/h5cc.in index 3422bdd4b2..28f0dee38a 100755 --- a/tools/misc/h5cc.in +++ b/tools/misc/h5cc.in @@ -318,7 +318,7 @@ if test "x$do_link" = "xyes"; then # module. It's okay if they're included twice in the compile line. link_args="$link_args $LIBS" - $SHOW $CLINKER $CFLAGS $LDFLAGS $clibpath $link_objs $link_args $shared_link + $SHOW $CLINKER $CFLAGS $clibpath $link_objs $link_args $shared_link $LDFLAGS status=$? fi