]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/libhttpparser/0001-Use-f-option-when-calling-ln-at-install-time.patch
lrzsz: install symlinks for XMODEM and YMODEM
[coffee/buildroot.git] / package / libhttpparser / 0001-Use-f-option-when-calling-ln-at-install-time.patch
1 From 384917321c45e492b0ca7aaa94d4b15324aef95d 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
6 This allows "make install; make install" to work properly.
7
8 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 Signed-off-by: Renaud AUBIN <root@renaud.io>
10 ---
11  Makefile | 8 ++++----
12  1 file changed, 4 insertions(+), 4 deletions(-)
13
14 diff --git a/Makefile b/Makefile
15 index 6cf63bd..c182e5c 100644
16 --- a/Makefile
17 +++ b/Makefile
18 @@ -133,14 +133,14 @@ tags: http_parser.c http_parser.h test.c
19  install: library
20         $(INSTALL) -D  http_parser.h $(DESTDIR)$(INCLUDEDIR)/http_parser.h
21         $(INSTALL) -D $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBNAME)
22 -       ln -s $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SONAME)
23 -       ln -s $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SOLIBNAME).$(SOEXT)
24 +       ln -sf $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SONAME)
25 +       ln -sf $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SOLIBNAME).$(SOEXT)
26  
27  install-strip: library
28         $(INSTALL) -D  http_parser.h $(DESTDIR)$(INCLUDEDIR)/http_parser.h
29         $(INSTALL) -D -s $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBNAME)
30 -       ln -s $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SONAME)
31 -       ln -s $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SOLIBNAME).$(SOEXT)
32 +       ln -sf $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SONAME)
33 +       ln -sf $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SOLIBNAME).$(SOEXT)
34  
35  uninstall:
36         rm $(DESTDIR)$(INCLUDEDIR)/http_parser.h
37 -- 
38 2.6.2
39