[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:
This commit is contained in:
Bill Wendling 2003-04-24 15:22:43 -05:00
parent 690e832bec
commit 68b1950013

View File

@ -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