diff --git a/configure.ac b/configure.ac
index 498820bfd17e9dca0e076c32e9520eb41c24ef85..0841f1c0490506a77cc1fd1b5a2d164669a3eb91 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1091,7 +1091,7 @@ if test "x$with_velociraptor" != "xno"; then
    AC_PROG_FC
    AC_FC_LIBRARY_LDFLAGS
    if test "x$with_velociraptor" != "xyes" -a "x$with_velociraptor" != "x"; then
-      VELOCIRAPTOR_LIBS="-L$with_velociraptor -lvelociraptor -lmpi -lstdc++ -lhdf5_cpp"
+      VELOCIRAPTOR_LIBS="-L$with_velociraptor -lvelociraptor -lmpi -lstdc++ -lhdf5"
       CFLAGS="$CFLAGS -fopenmp"
    else
       VELOCIRAPTOR_LIBS=""