Hi Simon, * Simon Josefsson wrote on Mon, Mar 02, 2009 at 11:02:44AM CET: > --- /dev/null > +++ b/doc/linker-script.texi > @@ -0,0 +1,26 @@ > +...@node Library Version Scripts > +...@section Library Version Scripts > + > +The @code{linker-script} module can be used to add shared library > +versioning support. You use the module by importing it to your > +library, and then add the following lines to the @code{Makefile.am} > +that builds the library: > + > +...@smallexample > +if HAVE_LD_VERSION_SCRIPT > +libfoo_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libfoo.map > +endif > +...@end smallexample
How about suggesting libtool's -export-symbols as a more portable but less powerful alternative for systems that do not support GNU ld version scripts? Alternatively, of course support for, say, Solaris ld version scripts would be nice too. Cheers, Ralf > +The version script file format is documented in the GNU LD manual, but > +a small example would be: > + > +...@smallexample > +LIBFOO_1.0 @{ > + global: > + libfoo_init; libfoo_doit; libfoo_done; > + > + local: > + *; > +...@}; > +...@end smallexample