From: Martin v. Löwis Date: Sun, 30 Mar 2003 15:37:33 +0000 (+0000) Subject: Use soname option when building a shared libpython. Fixes #701823. X-Git-Tag: v2.3c1~1328 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=45ec95d4d8d42cd896eb1fb436e1f29c8130b784;p=thirdparty%2FPython%2Fcpython.git Use soname option when building a shared libpython. Fixes #701823. --- diff --git a/Makefile.pre.in b/Makefile.pre.in index 3257bf9f3894..f8bcc92f0907 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -344,7 +344,12 @@ $(LIBRARY): $(LIBRARY_OBJS) $(RANLIB) $@ libpython$(VERSION).so: $(LIBRARY_OBJS) - $(LDSHARED) -o $@ $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM) + if test $INSTSONAME != $LDLIBRARY; then \ + $(LDSHARED) -Wl,-soname=$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM); \ + $(LN) -f $(INSTSONAME) $@; \ + else\ + $(LDSHARED) -o $@ $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM); \ + fi libpython$(VERSION).sl: $(LIBRARY_OBJS) $(LDSHARED) -o $@ $(LIBRARY_OBJS) $(LIBC) $(LIBM)