[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: linker-script.m4?
From: |
Ralf Wildenhues |
Subject: |
Re: linker-script.m4? |
Date: |
Mon, 2 Mar 2009 12:39:14 +0100 |
User-agent: |
Mutt/1.5.17+20080114 (2008-01-14) |
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 @@
> address@hidden Library Version Scripts
> address@hidden 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:
> +
> address@hidden
> +if HAVE_LD_VERSION_SCRIPT
> +libfoo_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libfoo.map
> +endif
> address@hidden 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:
> +
> address@hidden
> +LIBFOO_1.0 @{
> + global:
> + libfoo_init; libfoo_doit; libfoo_done;
> +
> + local:
> + *;
> address@hidden;
> address@hidden smallexample
- linker-script.m4?, Simon Josefsson, 2009/03/02
- Re: linker-script.m4?, Bruno Haible, 2009/03/02
- Re: linker-script.m4?, Simon Josefsson, 2009/03/02
- Re: shared library symbol versioning, Bruno Haible, 2009/03/02
- Re: shared library symbol versioning, Simon Josefsson, 2009/03/02
- Re: shared library symbol exports and versioning, Bruno Haible, 2009/03/02
- Re: shared library symbol exports and versioning, Simon Josefsson, 2009/03/02