summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-09-07 20:12:59 +0000
committerGeorg Brandl <georg@python.org>2007-09-07 20:12:59 +0000
commit18726be4d48e4e78b981029818234897f3f59f5c (patch)
treee4e0636b73ff0f7232e5c764f7f50ae66a021a6f
parent339a3ad87aeaf388b1275e2b32061d4831dba78c (diff)
downloadcpython-git-18726be4d48e4e78b981029818234897f3f59f5c.tar.gz
Backport: #1095: ln -f doesn't work portably.
-rw-r--r--Makefile.pre.in3
1 files changed, 2 insertions, 1 deletions
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)