From e3be8606195bda506272e71544e34520799711b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Tue, 18 Nov 2003 19:54:20 +0000 Subject: [PATCH] Patch #841807: Check whether a versioned libpython.so symlink is needed in altbininstall. Backported to 2.3. --- Makefile.pre.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.pre.in b/Makefile.pre.in index 3c3c119b91b..22856468aa1 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