diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2004-12-07 19:35:12 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2004-12-07 19:35:12 (GMT) |
commit | a0de505cc4cf70d2ab49bf51d72a2edbacdcda03 (patch) | |
tree | 4199ccbfa15f65303c69135dbffabb03dbceeab5 /tools | |
parent | c668bdbda9fcc54e82e5635e309c4b6b44d3ee7f (diff) | |
download | hdf5-a0de505cc4cf70d2ab49bf51d72a2edbacdcda03.zip hdf5-a0de505cc4cf70d2ab49bf51d72a2edbacdcda03.tar.gz hdf5-a0de505cc4cf70d2ab49bf51d72a2edbacdcda03.tar.bz2 |
[svn-r9633] 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:
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/misc/h5cc.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/misc/h5cc.in b/tools/misc/h5cc.in index e77f6d7..5a157b1 100755 --- a/tools/misc/h5cc.in +++ b/tools/misc/h5cc.in @@ -27,6 +27,7 @@ prefix="@prefix@" exec_prefix="@exec_prefix@" libdir="@libdir@" includedir="@includedir@" +HL="@HL@" ############################################################################ ## ## @@ -248,7 +249,12 @@ 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 |