summaryrefslogtreecommitdiff
path: root/tools/pkg-config/patches/001-fix-package-rebuild.patch
blob: 54f549c076be44ac833e914b3a6ed02b372312b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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)