0001-Use-f-option-when-calling-ln-at-install-time.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. From d9dfeca8736318eaad5cd4554cbae059469decde Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Fri, 28 Aug 2015 19:02:11 +0200
  4. Subject: [PATCH] Use -f option when calling ln at install time
  5. This allows "make install; make install" to work properly.
  6. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  7. ---
  8. Makefile | 4 ++--
  9. 1 file changed, 2 insertions(+), 2 deletions(-)
  10. diff --git a/Makefile b/Makefile
  11. index 373709c..6206b09 100644
  12. --- a/Makefile
  13. +++ b/Makefile
  14. @@ -113,12 +113,12 @@ tags: http_parser.c http_parser.h test.c
  15. install: library
  16. $(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
  17. $(INSTALL) -D $(SONAME) $(LIBDIR)/$(SONAME)
  18. - ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.so
  19. + ln -sf $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.so
  20. install-strip: library
  21. $(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
  22. $(INSTALL) -D -s $(SONAME) $(LIBDIR)/$(SONAME)
  23. - ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.so
  24. + ln -sf $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.so
  25. uninstall:
  26. rm $(INCLUDEDIR)/http_parser.h
  27. --
  28. 2.5.0