From: Georg Brandl Date: Fri, 7 Sep 2007 20:10:49 +0000 (+0000) Subject: #1095: ln -f doesn't work portably, fix in Makefile. X-Git-Tag: v2.6a1~1328 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bd9d544f8ddc1922756b42871965dfa2841ff4b3;p=thirdparty%2FPython%2Fcpython.git #1095: ln -f doesn't work portably, fix in Makefile. --- diff --git a/Makefile.pre.in b/Makefile.pre.in index bafeb2baaa87..326d04b1985a 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -660,7 +660,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)