-fvisibility=hidden
Дилян Палаузов
dilyan.palauzov at aegee.org
Fri Jul 20 07:00:29 EDT 2012
Hello,
>> There are still some other compilers left in the world. The Sun, sorry
>> Oracle, compiler, for example, will parse and ignore both
>> __attribute__(visibility()) in the code and -fvisibility=hidden on the
>> commandline, without failing.
>
> Adding gcc-ism's without testing for gcc in configure is a terrible
> idea. Please don't do it. The entire universe doesn't use gcc's
> non-standard compiler gunk.
cyrus-imapd/configure does check (with cmulocal/visibility.m4) if
-fvisibility=hidden / __attribuite__(visibility()) is supported by the
compiler. If it is not supported, -fvisibility=hidden is not passed to
the compiler, and EXPORTED/HIDDEN expand to nothing. If there are
systems, where this logic does not happen, then there is a bug (in the
gnulib's lib-symbol-visibility module).
Със здраве
Дилян
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dilyan_palauzov.vcf
Type: text/x-vcard
Size: 380 bytes
Desc: not available
Url : http://lists.andrew.cmu.edu/pipermail/cyrus-devel/attachments/20120720/bac83b78/attachment-0001.vcf
More information about the Cyrus-devel
mailing list