mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
[svn-r9634] Purpose:
bug fix Description: added a condition that checks if the hl library is enabled to add it to the list of linking libraries Solution: Platforms tested: linux Misc. update:
This commit is contained in:
parent
bdc10cce53
commit
f64162eb91
@ -27,6 +27,7 @@ prefix="@prefix@"
|
||||
exec_prefix="@exec_prefix@"
|
||||
libdir="@libdir@"
|
||||
includedir="@includedir@"
|
||||
HL="@HL@"
|
||||
|
||||
############################################################################
|
||||
## ##
|
||||
@ -246,9 +247,15 @@ if test "x$do_compile" = "xyes"; then
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if test "x$do_link" = "xyes"; then
|
||||
shared_link=""
|
||||
libraries=" $libraries -lhdf5_hl -lhdf5 "
|
||||
# conditionnaly link with the hl library
|
||||
if test "X$HL" = "Xhl"; then
|
||||
libraries=" $libraries -lhdf5_hl -lhdf5 "
|
||||
else
|
||||
libraries=" $libraries -lhdf5 "
|
||||
fi
|
||||
link_args="$link_args -L${libdir}"
|
||||
|
||||
case "$kind" in
|
||||
|
Loading…
Reference in New Issue
Block a user