visibility in trunk

Thiago Macieira thiago at kde.org
Sun Jan 21 21:56:44 CET 2007


Benjamin Reed wrote:
>also, is there a "real" test for this?  or is it just testing version?
> Apple's GCC tends to incorporate bugfixes that are not necessarily
>reflected in the version number itself.  It'd be nice to know if it's
>possible to use it anyways, even though Apple's *says* it's version
>4.0.1...

Yes, in KDE3 we had the following:

        AC_TRY_LINK(
        [
          /* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19664 */
          #include <string>
          int some_function( void ) __attribute__ 
((visibility("default")));
          int some_function( void )
          {
            std::string s("blafasel");
            return 0;
          }
        ], [/* elvis is alive */],
        kde_cv_val_gcc_visibility_bug=no, 
kde_cv_val_gcc_visibility_bug=yes)

That's the test that enabled -fvisibility-inlines-hidden and that was not 
ported to CMake.

My question is: is the test necessary or does gcc 4.1.0 already 
incorporate the fix?

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20070121/1dbfab4e/attachment.pgp 


More information about the Kde-buildsystem mailing list