0002-libzmq-Fix-pkg-config-files-for-static-linking.patch 841 B

1234567891011121314151617181920212223242526272829
  1. From e89577d30c278fba0f9e40266ceb6fb2821907d5 Mon Sep 17 00:00:00 2001
  2. From: Peter Korsgaard <peter@korsgaard.com>
  3. Date: Wed, 13 May 2015 08:01:34 +0200
  4. Subject: [PATCH] libzmq: Fix pkg-config files for static linking
  5. Libzmq uses C++ standard library features, so users of it should link
  6. against that as well when statically linking.
  7. Add it to Libs.private so users using pkg-config automatically gets the
  8. correct linker flags.
  9. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
  10. ---
  11. src/libzmq.pc.in | 1 +
  12. 1 file changed, 1 insertions(+)
  13. diff --git a/src/libzmq.pc.in b/src/libzmq.pc.in
  14. index ba155a3..52a39f7 100644
  15. --- a/src/libzmq.pc.in
  16. +++ b/src/libzmq.pc.in
  17. @@ -7,4 +7,5 @@ Name: libzmq
  18. Description: 0MQ c++ library
  19. Version: @VERSION@
  20. Libs: -L${libdir} -lzmq
  21. +Libs.private: -lstdc++
  22. Cflags: -I${includedir}
  23. --
  24. 2.1.4