[tools] pkg-config: fix occasional install problem
[openwrt.git] / tools / pkg-config / patches / 001-fix-package-rebuild.patch
1 --- a/Makefile.am
2 +++ b/Makefile.am
3 @@ -39,7 +39,7 @@
4  if HOST_TOOL
5  host_tool = $(host)-pkg-config$(EXEEXT)
6  install-exec-hook:
7 -       cd $(DESTDIR)$(bindir) && $(LN) pkg-config$(EXEEXT) $(host_tool)
8 +       cd $(DESTDIR)$(bindir) && $(LN) -f pkg-config$(EXEEXT) $(host_tool)
9  uninstall-hook:
10         cd $(DESTDIR)$(bindir) && rm -f $(host_tool)
11  endif
12 --- a/Makefile.in
13 +++ b/Makefile.in
14 @@ -1093,7 +1093,7 @@
15         uninstall-man1
16  
17  @HOST_TOOL_TRUE@install-exec-hook:
18 -@HOST_TOOL_TRUE@       cd $(DESTDIR)$(bindir) && $(LN) pkg-config$(EXEEXT) $(host_tool)
19 +@HOST_TOOL_TRUE@       cd $(DESTDIR)$(bindir) && $(LN) -f pkg-config$(EXEEXT) $(host_tool)
20  @HOST_TOOL_TRUE@uninstall-hook:
21  @HOST_TOOL_TRUE@       cd $(DESTDIR)$(bindir) && rm -f $(host_tool)
22