[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:


>   - 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:



More information about the mesa-dev mailing list