[PATCH] Cygwin GCC does not use visibility attributes
Yaakov (Cygwin/X)
yselkowitz at users.sourceforge.net
Fri Oct 16 10:39:56 PDT 2009
On 16/10/2009 12:01, Jon TURNEY wrote:
> Hmm... wouldn't it be better to avoid this ELF-ism by actually checking if the
> target supports -fvisibility=hidden and __attribute__
> ((visibility("default"))) by using them (with -Werror) in the autoconf check?
> (and then respecting that config check in pixman-compiler.h?)
I'm not aware of any other platforms besides Cygwin (and MinGW, I
suppose) where GCC4 accepts the -fvisibility option but doesn't do
anything with it, producing a warning instead. IIRC the same applied to
earlier versions of Solaris, but that doesn't seem to be the case anymore.
So no, I'm not sure its worth it to go that route just for us.
Yaakov
More information about the xorg-devel
mailing list