summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-11-18 19:54:20 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-11-18 19:54:20 (GMT)
commite3be8606195bda506272e71544e34520799711b5 (patch)
treed8fa37552d3ff14af5d14cc95044370c0d26f780 /Makefile.pre.in
parent8bafb2aaca1c6251af09f13bbf3aa8461b1e940f (diff)
downloadcpython-e3be8606195bda506272e71544e34520799711b5.zip
cpython-e3be8606195bda506272e71544e34520799711b5.tar.gz
cpython-e3be8606195bda506272e71544e34520799711b5.tar.bz2
Patch #841807: Check whether a versioned libpython.so symlink is needed
in altbininstall. Backported to 2.3.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 3c3c119..2285646 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -615,7 +615,9 @@ altbininstall: $(BUILDPYTHON)
$(INSTALL_SHARED) libpython$(VERSION)$(SO) $(DESTDIR)$(BINDIR); \
else \
$(INSTALL_SHARED) libpython$(VERSION)$(SO) $(DESTDIR)$(LIBDIR)/$(INSTSONAME); \
- (cd $(DESTDIR)$(LIBDIR); $(LN) -sf $(INSTSONAME) libpython$(VERSION)$(SO)); \
+ if test libpython$(VERSION)$(SO) != $(INSTSONAME); then \
+ (cd $(DESTDIR)$(LIBDIR); $(LN) -sf $(INSTSONAME) libpython$(VERSION)$(SO)); \
+ fi \
fi; \
else true; \
fi