1
0

100-build-add-Libs.private-field-in-libnl-pkg-config-file.patch 975 B

12345678910111213141516171819202122232425
  1. From db0d59cd06f3ffd350379847c0885e1bfb85af0f Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  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 <thomas.petazzoni@free-electrons.com>
  12. ---
  13. libnl-3.0.pc.in | 1 +
  14. 1 file changed, 1 insertion(+)
  15. --- a/libnl-3.0.pc.in
  16. +++ b/libnl-3.0.pc.in
  17. @@ -7,4 +7,5 @@ Name: libnl
  18. Description: Convenience library for netlink sockets
  19. Version: @PACKAGE_VERSION@
  20. Libs: -L${libdir} -lnl-@MAJ_VERSION@
  21. +Libs.private: @LIBS@
  22. Cflags: -I${includedir}/libnl@MAJ_VERSION@