bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: control of symbols exported by shared libraries


From: Albert Chin
Subject: Re: control of symbols exported by shared libraries
Date: Mon, 25 Jul 2005 13:05:28 -0500
User-agent: Mutt/1.5.6i

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 "-fvisibility=hidden"?

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 __attribute__((__visibility__("default"))) int exportedfunc (void);

  $ xlc -c vis.c
  [no error]

-- 
albert chin (address@hidden)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]