aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pkg-config/patches
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2013-11-20 22:09:11 +0000
committerLuka Perkov <luka@openwrt.org>2013-11-20 22:09:11 +0000
commitd8b7d994782158332a5fef4d82c7cebf1a12935b (patch)
treede25854b6e57f760d8f5664db02a1297c835d0f5 /tools/pkg-config/patches
parent3044b185d1c75e84a404bf2990cf45ad244a5dcd (diff)
downloadupstream-d8b7d994782158332a5fef4d82c7cebf1a12935b.tar.gz
upstream-d8b7d994782158332a5fef4d82c7cebf1a12935b.tar.bz2
upstream-d8b7d994782158332a5fef4d82c7cebf1a12935b.zip
pkg-config: fix occasional install problem
Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38886
Diffstat (limited to 'tools/pkg-config/patches')
-rw-r--r--tools/pkg-config/patches/001-fix-package-rebuild.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/pkg-config/patches/001-fix-package-rebuild.patch b/tools/pkg-config/patches/001-fix-package-rebuild.patch
new file mode 100644
index 0000000000..54f549c076
--- /dev/null
+++ b/tools/pkg-config/patches/001-fix-package-rebuild.patch
@@ -0,0 +1,22 @@
+--- 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)
+