Description: hacking the libtool file so that it does not build the binaries
 with -rpath.
Author: Pierre Gruet <pgt@debian.org>
Origin: other, https://wiki.debian.org/RpathIssue
Forwarded: not-needed
Last-Update: 2022-06-27

--- a/zookeeper-client/zookeeper-client-c/configure.ac
+++ b/zookeeper-client/zookeeper-client-c/configure.ac
@@ -273,3 +273,11 @@
     ;;
   esac ])
 AC_OUTPUT
+
+#Removing the -rpath indications for the build.
+AC_MSG_RESULT([Fixing libtool for -rpath problems.])
+sed < libtool > libtool-2 \
+'s/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/'
+mv libtool-2 libtool
+chmod 755 libtool
+
