mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
[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:
parent
690e832bec
commit
68b1950013
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user