[Python-checkins] python/dist/src Makefile.pre.in,1.118,1.119

loewis@users.sourceforge.net loewis@users.sourceforge.net
Sun, 30 Mar 2003 07:37:37 -0800


Update of /cvsroot/python/python/dist/src
In directory sc8-pr-cvs1:/tmp/cvs-serv1167

Modified Files:
	Makefile.pre.in 
Log Message:
Use soname option when building a shared libpython. Fixes #701823.


Index: Makefile.pre.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/Makefile.pre.in,v
retrieving revision 1.118
retrieving revision 1.119
diff -C2 -d -r1.118 -r1.119
*** Makefile.pre.in	20 Mar 2003 23:35:38 -0000	1.118
--- Makefile.pre.in	30 Mar 2003 15:37:33 -0000	1.119
***************
*** 345,349 ****
  
  libpython$(VERSION).so: $(LIBRARY_OBJS)
! 	$(LDSHARED) -o $@ $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM)
  
  libpython$(VERSION).sl: $(LIBRARY_OBJS)
--- 345,354 ----
  
  libpython$(VERSION).so: $(LIBRARY_OBJS)
! 	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)