0001-fix-install-rule.patch 809 B

12345678910111213141516171819202122
  1. Makefile: fix install rule
  2. Do not link the .so with an absolute path, otherwise it may point to
  3. the host library.
  4. Based on the former patch by Yann E. MORIN.
  5. Signed-off-by: Vicente Olivert Riera <vincent.riera@imgtec.com>
  6. [baruch: update for 1.6]
  7. Signed-off-by: Baruch Siach <baruch@tkos.co.il>
  8. --- keyutils-1.5.9/Makefile.orig 2014-09-22 16:13:41.593562765 +0100
  9. +++ keyutils-1.5.9/Makefile 2014-09-22 16:14:05.377963952 +0100
  10. @@ -200,7 +200,7 @@ ifeq ($(NO_SOLIB),0)
  11. $(INSTALL) -D $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBNAME)
  12. $(LNS) $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SONAME)
  13. mkdir -p $(DESTDIR)$(USRLIBDIR)
  14. - $(LNS) $(LIBDIR)/$(SONAME) $(DESTDIR)$(USRLIBDIR)/$(DEVELLIB)
  15. + $(LNS) $(SONAME) $(DESTDIR)$(USRLIBDIR)/$(DEVELLIB)
  16. sed \
  17. -e 's,@VERSION\@,$(VERSION),g' \
  18. -e 's,@prefix\@,$(PREFIX),g' \