summaryrefslogtreecommitdiffstats
path: root/c++
diff options
context:
space:
mode:
Diffstat (limited to 'c++')
-rwxr-xr-xc++/src/h5c++.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/c++/src/h5c++.in b/c++/src/h5c++.in
index aa436eb..2493ad0 100755
--- a/c++/src/h5c++.in
+++ b/c++/src/h5c++.in
@@ -251,7 +251,7 @@ if test "x$do_link" = "xyes"; then
shared_link=""
# conditionnaly link with the hl library
if test "X$HL" = "Xhl"; then
- libraries=" $libraries -lhdf5_cpp -lhdf5_hl -lhdf5 "
+ libraries=" $libraries -lhdf5_hl_cpp -lhdf5_cpp -lhdf5_hl -lhdf5 "
else
libraries=" $libraries -lhdf5_cpp -lhdf5 "
fi
@@ -289,6 +289,12 @@ if test "x$do_link" = "xyes"; then
-lhdf5_hl)
new_libraries="$new_libraries ${libdir}/libhdf5_hl.a"
;;
+ -lhdf5_cpp)
+ new_libraries="$new_libraries ${libdir}/libhdf5_cpp.a"
+ ;;
+ -lhdf5_hl_cpp)
+ new_libraries="$new_libraries ${libdir}/libhdf5_hl_cpp.a"
+ ;;
*)
new_libraries="$new_libraries $lib"
;;