From 18726be4d48e4e78b981029818234897f3f59f5c Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 7 Sep 2007 20:12:59 +0000 Subject: [PATCH] Backport: #1095: ln -f doesn't work portably. --- Makefile.pre.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.pre.in b/Makefile.pre.in index 078f2d9025b..9cf1be0b178 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -656,7 +656,8 @@ bininstall: altbininstall else true; \ fi (cd $(DESTDIR)$(BINDIR); $(LN) python$(VERSION)$(EXE) $(PYTHON)) - (cd $(DESTDIR)$(BINDIR); $(LN) -sf python$(VERSION)-config python-config) + -rm -f $(DESTDIR)$(BINDIR)/python-config + (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python-config) # Install the interpreter with $(VERSION) affixed # This goes into $(exec_prefix)