From: Georg Brandl Date: Fri, 7 Sep 2007 20:12:59 +0000 (+0000) Subject: Backport: #1095: ln -f doesn't work portably. X-Git-Tag: v2.5.2c1~189 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18726be4d48e4e78b981029818234897f3f59f5c;p=python Backport: #1095: ln -f doesn't work portably. --- diff --git a/Makefile.pre.in b/Makefile.pre.in index 078f2d9025..9cf1be0b17 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)