From 68b1950013d5890ad70bb7ec28036a15ef34265d Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 24 Apr 2003 15:22:43 -0500 Subject: [svn-r6746] Purpose: Bug Fix Description: When going to compile on a platform (like HP-UX) which doesn't have libz.a in it's path, the script would fail. The reason was that the LDFLAGS variable which holds the directories to these libraries was last in the compile line. So the compiler couldn't find the library Solution: Put the LDFLAGS variable before the linker variables. Platforms tested: Kelgia (Fortran) Verbena (Fortran, no C++ since only Fortran affected) Arabica (Fortran) Modi4 (Fortran & Parallel) Also ran "make check-install" Misc. update: --- fortran/src/h5fc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fortran/src/h5fc.in b/fortran/src/h5fc.in index d264af0..b96a804 100755 --- a/fortran/src/h5fc.in +++ b/fortran/src/h5fc.in @@ -205,7 +205,7 @@ if test "x$do_link" = "xyes"; then link_args="$link_args ${libdir}/libhdf5_fortran.a ${libdir}/libhdf5.a" link_args="$link_args $LIBS" - $SHOW $FLINKER ${FFLAGS} ${F9XSUFFIXFLAG} ${fmodules} $link_objs $link_args ${LDFLAGS} + $SHOW $FLINKER ${FFLAGS} ${F9XSUFFIXFLAG} ${fmodules} ${LDFLAGS} $link_objs $link_args status=$? fi -- cgit v0.12