From: Martin v. Löwis Date: Tue, 18 Nov 2003 19:54:20 +0000 (+0000) Subject: Patch #841807: Check whether a versioned libpython.so symlink is needed X-Git-Tag: v2.4a1~1268 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e3be8606195bda506272e71544e34520799711b5;p=thirdparty%2FPython%2Fcpython.git Patch #841807: Check whether a versioned libpython.so symlink is needed in altbininstall. Backported to 2.3. --- diff --git a/Makefile.pre.in b/Makefile.pre.in index 3c3c119b91bd..22856468aa1e 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