File: 34-no-rpath-with-libtool.patch

package info (click to toggle)
zookeeper 3.9.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 26,872 kB
  • sloc: java: 122,772; cpp: 14,071; ansic: 12,468; javascript: 11,754; xml: 4,965; python: 2,829; sh: 2,444; makefile: 241; perl: 114
file content (21 lines) | stat: -rw-r--r-- 654 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
+