summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2004-12-07 19:35:51 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2004-12-07 19:35:51 (GMT)
commitf64162eb912306ab9d23aea1dc1f550842476595 (patch)
tree4944fb449d356e9adee050ab09c871b47678c5be /tools
parentbdc10cce5380ba2895dc658a360845830b9451e4 (diff)
downloadhdf5-f64162eb912306ab9d23aea1dc1f550842476595.zip
hdf5-f64162eb912306ab9d23aea1dc1f550842476595.tar.gz
hdf5-f64162eb912306ab9d23aea1dc1f550842476595.tar.bz2
[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:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/misc/h5cc.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/misc/h5cc.in b/tools/misc/h5cc.in
index 7f3c094..e2e6364 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@"
############################################################################
## ##
@@ -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