[Patches] Re: Python 1.5.2 BSD/OS support for dynamic modules

David J. MacKenzie djm@web.us.uu.net
Tue, 20 Jun 2000 03:55:14 -0400


> Something similar to this patch has already been applied to 1.6.
> >From cvs log configure.in:
> revision 1.107
> date: 1999/10/05 21:59:33;  author: guido;  state: Exp;  lines: +3 -1
> Dynamic linking support for BSD/OS 4.x as suggested by Vivek Khera
> 
> One actual difference between the two... Mackenzie's patch has:
> 
> >@@ -512,6 +512,7 @@
> > 	hp*|HP*)
> > 	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
> > 	FreeBSD/3*) LINKFORSHARED="-Xlinker -export-dynamic";;
> >+	BSD/OS/4*) LINKFORSHARED="-rdynamic";;
> > 	Linux*) LINKFORSHARED="-Xlinker -export-dynamic";;
> > 	# -u libsys_s pulls in all symbols in libsys
> > 	next/2*|next/3*) LINKFORSHARED="-u libsys_s";;
> 
> The configure.in currently sets it to -Xlinker -export-dynamic, just
> like all the other GCC platforms.  By symmetry arguments, probably
> configure.in is right.

Both ways appear to work.  I got the -rdynamic from libtool's
BSD/OS configuration in ltconfig.in.