lvm2-2.02.106-pthread-pkgconfig.patch 860 B

123456789101112131415161718192021222324252627282930313233
  1. Make sure that libdm usage always brings in pthread libraries, both in
  2. pkgconfig and during manual build.
  3. --- tools/Makefile.in
  4. +++ tools/Makefile.in
  5. @@ -87,6 +87,7 @@
  6. INSTALL_LVM_TARGETS += install_tools_static
  7. INSTALL_DMSETUP_TARGETS += install_dmsetup_static
  8. INSTALL_CMDLIB_TARGETS += install_cmdlib_static
  9. + STATIC_LIBS += @PTHREAD_LIBS@
  10. endif
  11. LVMLIBS = $(LVMINTERNAL_LIBS)
  12. @@ -118,6 +119,10 @@
  13. include $(top_builddir)/make.tmpl
  14. +ifeq ("@STATIC_LINK@", "yes")
  15. + STATIC_LIBS += @PTHREAD_LIBS@
  16. +endif
  17. +
  18. device-mapper: $(TARGETS_DM)
  19. CFLAGS_dmsetup.o += $(UDEV_CFLAGS) $(EXTRA_EXEC_CFLAGS)
  20. --- libdm/libdevmapper.pc.in
  21. +++ libdm/libdevmapper.pc.in
  22. @@ -8,4 +8,5 @@
  23. Version: @DM_LIB_PATCHLEVEL@
  24. Cflags: -I${includedir}
  25. Libs: -L${libdir} -ldevmapper
  26. +Libs.private: -L${libdir} @PTHREAD_LIBS@
  27. Requires.private: @SELINUX_PC@ @UDEV_PC@