mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-12 17:31:09 +08:00
[svn-r9628] Purpose:
modified h5cc to link with the high level library (libhdf5_hl) Description: added libhdf5_hl.a to the list of libarries to link with Solution: Platforms tested: linux Misc. update:
This commit is contained in:
parent
4954609870
commit
9f45ccfae3
@ -248,7 +248,7 @@ fi
|
||||
|
||||
if test "x$do_link" = "xyes"; then
|
||||
shared_link=""
|
||||
libraries=" $libraries -lhdf5 "
|
||||
libraries=" $libraries -lhdf5_hl -lhdf5 "
|
||||
link_args="$link_args -L${libdir}"
|
||||
|
||||
case "$kind" in
|
||||
@ -272,14 +272,17 @@ if test "x$do_link" = "xyes"; then
|
||||
fi
|
||||
|
||||
if test "x$USE_SHARED_LIB" != "xyes"; then
|
||||
# The "-lhdf5" flag is in here already...This is a static compile,
|
||||
# though, so change it to the static version (.a) of the library.
|
||||
# The "-lhdf5" & "-lhdf5_hl" flags are in here already...This is a static
|
||||
# compile though, so change it to the static version (.a) of the library.
|
||||
new_libraries=""
|
||||
for lib in $libraries; do
|
||||
case "$lib" in
|
||||
-lhdf5)
|
||||
new_libraries="$new_libraries ${libdir}/libhdf5.a"
|
||||
;;
|
||||
-lhdf5_hl)
|
||||
new_libraries="$new_libraries ${libdir}/libhdf5_hl.a"
|
||||
;;
|
||||
*)
|
||||
new_libraries="$new_libraries $lib"
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user