File: apu_config_dont_list_indep_libs.patch

package info (click to toggle)
apr-util 1.5.4-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,912 kB
  • sloc: ansic: 39,055; sh: 10,713; makefile: 288; perl: 154; xml: 36
file content (35 lines) | stat: -rw-r--r-- 1,147 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: Peter Samuelson <peter@p12n.org>
Subject: Prevent recursive linking of dependent libraries by apr-util users.

---
 apr-util.pc.in |    5 +++--
 apu-config.in  |    2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

Index: trunk/apr-util.pc.in
===================================================================
--- trunk.orig/apr-util.pc.in
+++ trunk/apr-util.pc.in
@@ -8,6 +8,7 @@
 Description: Companion library for APR
 Version: @APRUTIL_DOTTED_VERSION@
 # assume that apr-util requires libapr of same major version
-Requires: apr-@APRUTIL_MAJOR_VERSION@
-Libs: -L${libdir} -l@APRUTIL_LIBNAME@ @LDADD_ldap@ @APRUTIL_EXPORT_LIBS@
+Requires.private: apr-@APRUTIL_MAJOR_VERSION@
+Libs: -L${libdir} -l@APRUTIL_LIBNAME@ @LDADD_ldap@
+Libs.private: @APRUTIL_EXPORT_LIBS@
 Cflags: -I${includedir}
Index: trunk/apu-config.in
===================================================================
--- trunk.orig/apu-config.in
+++ trunk/apu-config.in
@@ -27,7 +27,7 @@
 libdir="@libdir@"
 includedir="@includedir@"
 
-LIBS="@APRUTIL_EXPORT_LIBS@"
+LIBS=
 INCLUDES="@APRUTIL_INCLUDES@"
 LDFLAGS="@APRUTIL_LDFLAGS@"
 ORIG_LDAP_LIBS="@LDADD_ldap@"