Disabling visibility=hidden for certain cpp files?

Thiago Macieira thiago at kde.org
Fri Oct 19 17:23:08 CEST 2007


Em Friday 19 October 2007 12:39:53 Simon Edwards escreveu:
> Hello,
>
> Is there a neat way of disabling gcc's visibility=hidden for a given
> library? (which in my case will actually be a Python module) Or should I
> just manually filter it out of CMAKE_CXX_FLAGS for my code?

Not right now. But what should happen is that CMAKE_C_FLAGS and 
CMAKE_CXX_FLAGS should be set on a per-target basis: only for KDE_ADD_LIBRARY 
(and similarly shared modules like kdeinit and plugins).

Anything else (applications and non-KDE libraries) do not automatically 
get -fvisibility=hidden.

Do you want to give the patch a try?

-- 
  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: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20071019/5679435f/attachment.pgp 


More information about the Kde-buildsystem mailing list