Re: control of symbols exported by shared libraries

2005-07-27 Thread Bruno Haible
Simon Josefsson wrote: > I mean, the symbols > that are not intended to be exported should all be marked with "static" > anyway. That's hardly possible in practice. The larger a library is, the larger is the ratio of internal versus exported symbols. If you want all internal symbols to be marked

Re: control of symbols exported by shared libraries

2005-07-27 Thread Simon Josefsson
> Simon Josefsson wrote: >> it appeared to me that a >> preferable approach would be to fix libtool, and I thought that had >> been done. Joe Orton of RedHat even asked me to use Libtool's >> --export-symbols-regex in GnuTLS, for instance. I have been using it >> all of my libraries for a long ti

Re: control of symbols exported by shared libraries

2005-07-27 Thread Bruno Haible
Simon Josefsson wrote: > it appeared to me that a > preferable approach would be to fix libtool, and I thought that had > been done. Joe Orton of RedHat even asked me to use Libtool's > --export-symbols-regex in GnuTLS, for instance. I have been using it > all of my libraries for a long time. No

Re: control of symbols exported by shared libraries

2005-07-25 Thread Bruno Haible
Albert Chin wrote: > The AIX v7 compiler compiles the following: > $ cat vis.c > extern __attribute__((__visibility__("hidden"))) int hiddenvar; > extern __attribute__((__visibility__("default"))) int exportedvar; > extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); > extern

Re: control of symbols exported by shared libraries

2005-07-25 Thread Simon Josefsson
Bruno Haible <[EMAIL PROTECTED]> writes: > Simon Josefsson wrote: >> > gcc-4.0 now provides support for controlling the set of symbols exported >> > from a shared library in a reasonable, maintainable way. I have added a >> > gnulib module to this effect. With documentation, this time :-) >> >> Ho

Re: control of symbols exported by shared libraries

2005-07-25 Thread Albert Chin
On Mon, Jul 25, 2005 at 05:46:02PM +0200, Bruno Haible wrote: > Simon Josefsson wrote: > > Your module look somewhat gcc-specific, whereas, in theory, > > libtool might work with other compilers too. > > Do you know of other compilers than GCC 4 and MSVC that support the > equivalent of "-fvisibil

Re: control of symbols exported by shared libraries

2005-07-25 Thread Bruno Haible
Simon Josefsson wrote: > > gcc-4.0 now provides support for controlling the set of symbols exported > > from a shared library in a reasonable, maintainable way. I have added a > > gnulib module to this effect. With documentation, this time :-) > > How does this relate to something like Libtool's -e

Re: control of symbols exported by shared libraries

2005-07-25 Thread Simon Josefsson
Bruno Haible <[EMAIL PROTECTED]> writes: > Hi, > > gcc-4.0 now provides support for controlling the set of symbols exported > from a shared library in a reasonable, maintainable way. I have added a > gnulib module to this effect. With documentation, this time :-) How does this relate to something

control of symbols exported by shared libraries

2005-07-25 Thread Bruno Haible
= Description: Control of symbols exported by shared libraries. Files: m4/visibility.m4 Depends-on: configure.ac: gl_VISIBILITY Makefile.am: Include: License: LGPL Maintainer: Bruno Haible == m4/visibility.m4 == # visibility.m4 serial