[PATCH libSM] Export only public API symbols

Gaetan Nadon memsize at videotron.ca
Mon Dec 6 14:54:12 PST 2010

On Mon, 2010-12-06 at 20:35 +0100, Julien Cristau wrote:

> > +libSM_la_LDFLAGS = -export-symbols-regex "Sm.*" -version-number
> 6:0:1 -no-undefined
> >  
> Do we want to use that rather than explicitly adding _X_EXPORT or
> _X_HIDDEN to the right places in the source?

That sounds like a better alternative. It may be a bit more work now,
but on the long term the regex method is rather brittle as it relies on
a naming convention. As Alan pointed out, it may be a noop in many libs
as all the symbols are part of the public API.

It would be nice to hear from Christian on what prompted this patch. Any
incident occurred recently or something along those lines?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20101206/cfde2b10/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20101206/cfde2b10/attachment.pgp>

More information about the xorg-devel mailing list