patch-libdm_Makefile_in 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --- LVM2.2.02.61.orig/libdm/Makefile.in 2009-10-02 21:10:36.000000000 +0200
  2. +++ LVM2.2.02.61/libdm/Makefile.in 2010-03-08 06:27:03.000000000 +0100
  3. @@ -35,9 +35,7 @@ SOURCES =\
  4. INCLUDES = -I$(srcdir)/$(interface) -I$(srcdir)
  5. -ifeq ("@STATIC_LINK@", "yes")
  6. LIB_STATIC = $(interface)/libdevmapper.a
  7. -endif
  8. ifeq ("@LIB_SUFFIX@","dylib")
  9. LIB_SHARED = $(interface)/libdevmapper.dylib
  10. @@ -60,9 +58,7 @@ device-mapper: all
  11. INSTALL_TYPE = install_dynamic
  12. -ifeq ("@STATIC_LINK@", "yes")
  13. - INSTALL_TYPE += install_static
  14. -endif
  15. +INSTALL_TYPE += install_static
  16. ifeq ("@PKGCONFIG@", "yes")
  17. INSTALL_TYPE += install_pkgconfig
  18. @@ -73,26 +69,32 @@ install: $(INSTALL_TYPE) install_include
  19. install_device-mapper: install
  20. install_include:
  21. - $(INSTALL) -D $(OWNER) $(GROUP) -m 444 $(srcdir)/libdevmapper.h \
  22. + $(INSTALL) -d $(includedir)
  23. + $(INSTALL) $(OWNER) $(GROUP) -m 444 $(srcdir)/libdevmapper.h \
  24. $(includedir)/libdevmapper.h
  25. install_dynamic: install_@interface@
  26. + $(INSTALL) -d $(libdir)
  27. $(LN_S) -f libdevmapper.$(LIB_SUFFIX).$(LIB_VERSION_DM) \
  28. $(libdir)/libdevmapper.$(LIB_SUFFIX)
  29. install_static: install_@interface@_static
  30. + $(INSTALL) -d $(libdir)
  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) -d $(libdir)
  45. + $(INSTALL) $(OWNER) $(GROUP) -m 555 $(STRIP) $< \
  46. $(libdir)/libdevmapper.a.$(LIB_VERSION_DM)
  47. $(VERSIONED_SHLIB): %.$(LIB_SUFFIX).$(LIB_VERSION_DM): $(interface)/%.$(LIB_SUFFIX)