RFC: Symbol exports
Karl Vogel
karl.vogel at seagha.com
Mon Jul 26 22:47:27 CEST 2004
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! :-) )
More information about the Kde-optimize
mailing list