[Mesa-dev] [PATCH] configure: simplify visibility compiler flag detection

Alan Coopersmith alan.coopersmith at oracle.com
Mon Mar 2 21:21:33 PST 2015


On 03/ 1/15 02:31 PM, Emil Velikov wrote:
>   - Considering the lack of -fvisibility, what is the normal visibility
> "level" - hidden or default ? If the latter this means that every
> library/module built exports a ton of internal symbols.

Default, unless you pass the -xldscope=hidden flag to Studio, as the
Xserver does:

http://cgit.freedesktop.org/xorg/xserver/tree/configure.ac?id=xorg-server-1.17.1#n1840

>   - Using the __has_attribute macro looks great, although I would suspect
> that it will take a while for GCC and others to adopt(?).

Probably, which is why X.Org uses it in addition to, instead of as a
replacement for, the gcc version checks for now:

http://cgit.freedesktop.org/xorg/proto/x11proto/commit/?id=ffd4a13042d24cb5c913207585191801a9a1603e

	-alan-



More information about the mesa-dev mailing list