]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch #841807: Check whether a versioned libpython.so symlink is needed
authorMartin v. Löwis <martin@v.loewis.de>
Tue, 18 Nov 2003 19:54:20 +0000 (19:54 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Tue, 18 Nov 2003 19:54:20 +0000 (19:54 +0000)
in altbininstall. Backported to 2.3.

Makefile.pre.in

index 3c3c119b91bde06b53c63c8b573adaa092a3aa87..22856468aa1e9ca94373707af234552ef7f49988 100644 (file)
@@ -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