0001-libtorrent.pc.in-add-Libs.Private.patch 936 B

123456789101112131415161718192021222324252627282930
  1. From a86219e725441eb87321fa3e24531dafa54ee674 Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Sun, 20 Oct 2019 20:23:19 +0200
  4. Subject: [PATCH] libtorrent.pc.in: add Libs.Private
  5. Add Libs.Private: -lz so applications that want to link statically with
  6. libtorrent (such as rtorrent) will know that they must link with -lz
  7. Fixes:
  8. - http://autobuild.buildroot.org/results/075598e1699c2ac20a4dfbcb5695bbb7343f9a86
  9. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  10. [Upstream status: https://github.com/rakshasa/libtorrent/pull/202]
  11. ---
  12. libtorrent.pc.in | 1 +
  13. 1 file changed, 1 insertion(+)
  14. diff --git a/libtorrent.pc.in b/libtorrent.pc.in
  15. index cf6612bc..6108f7e9 100644
  16. --- a/libtorrent.pc.in
  17. +++ b/libtorrent.pc.in
  18. @@ -7,4 +7,5 @@ Name: libtorrent
  19. Description: A BitTorrent library
  20. Version: @VERSION@
  21. Libs: -L${libdir} -ltorrent
  22. +Libs.Private: -lz
  23. Cflags: -I${includedir}
  24. --
  25. 2.23.0