Openwrt/tools/pkg-config/patches/001-fix-package-rebuild.patch
Luka Perkov d8b7d99478 pkg-config: fix occasional install problem
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 38886
2013-11-20 22:09:11 +00:00

23 lines
717 B
Diff

--- a/Makefile.am
+++ b/Makefile.am
@@ -39,7 +39,7 @@
if HOST_TOOL
host_tool = $(host)-pkg-config$(EXEEXT)
install-exec-hook:
- cd $(DESTDIR)$(bindir) && $(LN) pkg-config$(EXEEXT) $(host_tool)
+ cd $(DESTDIR)$(bindir) && $(LN) -f pkg-config$(EXEEXT) $(host_tool)
uninstall-hook:
cd $(DESTDIR)$(bindir) && rm -f $(host_tool)
endif
--- a/Makefile.in
+++ b/Makefile.in
@@ -1093,7 +1093,7 @@
uninstall-man1
@HOST_TOOL_TRUE@install-exec-hook:
-@HOST_TOOL_TRUE@ cd $(DESTDIR)$(bindir) && $(LN) pkg-config$(EXEEXT) $(host_tool)
+@HOST_TOOL_TRUE@ cd $(DESTDIR)$(bindir) && $(LN) -f pkg-config$(EXEEXT) $(host_tool)
@HOST_TOOL_TRUE@uninstall-hook:
@HOST_TOOL_TRUE@ cd $(DESTDIR)$(bindir) && rm -f $(host_tool)