RFC: Symbol exports

Karl Vogel <[email protected]>
Newsgroups gmane.comp.kde.devel.optimize
Message-ID <[email protected]>
Right.. I now have a complete KDELIBS / KDEBASE running build with 
gcc+visibility patch and default visibility set to hidden. This means that 
nothing is exported in shared libs by default.

I'm now wondering if this *huge* patch will stand any chance of being applied 
(before doing too much extra work on it) ?!  And no I don't mean for 3.3 :-)

The patch won't have any adverse effects as far as I can think off, since it 
can completely be disabled by defining KDE_EXPORT as empty.


Here's what it takes to make KDE work with hidden default:

* am_edit / unsermake needs a patch to export kdeinitmain generated stubs
* kdelibs/dcop/dcopidl2cpp patch to handle LINK_SCOPE tag (which is already 
present in .kidl files)
* giant patch to place KDE_EXPORT on all classes that need exporting and on 
files which have kdeinit/kdeinitmain, KCModule functions, kss_ screensaver 
functions, ...

Any thoughts?! Questions?


(this will surely make Gentoo users giddy.. more compiler flags to play 
with! :-) )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.