patch-libdm_Makefile_in 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. always install static library
  2. --- LVM2.2.02.51.orig/libdm/Makefile.in 2009-04-08 16:04:35.000000000 +0200
  3. +++ LVM2.2.02.51/libdm/Makefile.in 2009-08-22 15:37:53.000000000 +0200
  4. @@ -34,9 +34,9 @@ SOURCES =\
  5. INCLUDES = -I$(interface) -I.
  6. -ifeq ("@STATIC_LINK@", "yes")
  7. +#ifeq ("@STATIC_LINK@", "yes")
  8. LIB_STATIC = $(interface)/libdevmapper.a
  9. -endif
  10. +#endif
  11. ifeq ("@LIB_SUFFIX@","dylib")
  12. LIB_SHARED = $(interface)/libdevmapper.dylib
  13. @@ -59,9 +59,9 @@ device-mapper: all
  14. INSTALL_TYPE = install_dynamic
  15. -ifeq ("@STATIC_LINK@", "yes")
  16. +#ifeq ("@STATIC_LINK@", "yes")
  17. INSTALL_TYPE += install_static
  18. -endif
  19. +#endif
  20. ifeq ("@PKGCONFIG@", "yes")
  21. INSTALL_TYPE += install_pkgconfig
  22. @@ -72,7 +72,8 @@ install: $(INSTALL_TYPE) install_include
  23. install_device-mapper: install
  24. install_include:
  25. - $(INSTALL) -D $(OWNER) $(GROUP) -m 444 libdevmapper.h \
  26. + $(INSTALL) -d $(includedir)
  27. + $(INSTALL) $(OWNER) $(GROUP) -m 444 libdevmapper.h \
  28. $(includedir)/libdevmapper.h
  29. install_dynamic: install_@interface@
  30. @@ -83,15 +84,17 @@ install_static: install_@interface@_stat
  31. $(LN_S) -f libdevmapper.a.$(LIB_VERSION_DM) $(libdir)/libdevmapper.a
  32. install_ioctl: ioctl/libdevmapper.$(LIB_SUFFIX)
  33. - $(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
  34. + $(INSTALL) -d $(libdir)
  35. + $(INSTALL) $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
  36. $(libdir)/libdevmapper.$(LIB_SUFFIX).$(LIB_VERSION_DM)
  37. install_pkgconfig:
  38. - $(INSTALL) -D $(OWNER) $(GROUP) -m 444 libdevmapper.pc \
  39. + $(INSTALL) -d $(usrlibdir)/pkgconfig
  40. + $(INSTALL) $(OWNER) $(GROUP) -m 444 libdevmapper.pc \
  41. $(usrlibdir)/pkgconfig/devmapper.pc
  42. install_ioctl_static: ioctl/libdevmapper.a
  43. - $(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
  44. + $(INSTALL) $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
  45. $(libdir)/libdevmapper.a.$(LIB_VERSION_DM)
  46. $(VERSIONED_SHLIB): %.$(LIB_SUFFIX).$(LIB_VERSION_DM): $(interface)/%.$(LIB_SUFFIX)