100-build-add-Libs.private-field-in-libnl-pkg-config-file.patch 1.0 KB

123456789101112131415161718192021222324252627282930
  1. From db0d59cd06f3ffd350379847c0885e1bfb85af0f Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <[email protected]>
  3. Date: Sat, 7 Mar 2015 11:34:42 +0100
  4. Subject: [PATCH 2/2] build: add Libs.private field in libnl pkg-config file
  5. In order to support static linking, the libnl pkg-config file should
  6. indicate in its Libs.private field the libraries that libnl-3.0.a
  7. requires. The LIBS variable contains the appropriate list of
  8. libraries: -lm in all cases, and -lpthread when pthread support is
  9. enabled. This allows to statically link applications against libnl
  10. properly.
  11. Signed-off-by: Thomas Petazzoni <[email protected]>
  12. ---
  13. libnl-3.0.pc.in | 1 +
  14. 1 file changed, 1 insertion(+)
  15. diff --git a/libnl-3.0.pc.in b/libnl-3.0.pc.in
  16. index b87e3dc..ddbc999 100644
  17. --- a/libnl-3.0.pc.in
  18. +++ b/libnl-3.0.pc.in
  19. @@ -7,4 +7,5 @@ Name: libnl
  20. Description: Convenience library for netlink sockets
  21. Version: @PACKAGE_VERSION@
  22. Libs: -L${libdir} -lnl-@MAJ_VERSION@
  23. +Libs.private: @LIBS@
  24. Cflags: -I${includedir}/libnl@MAJ_VERSION@
  25. --
  26. 2.1.0