On Sunday 22 November 2015 22:27:08 Chris Cannam wrote:
> 
> On Sun, Nov 22, 2015, at 09:27 PM, Yves Guillemot wrote:
> > That's a very long patch and the way it works is interesting.
> > I was totally unaware of gcc __attribute__((visibility())
> 
> There is also the option of listing symbol visibility in a script file
> (--version-script=blah.map) at shared object link time. Not sure whether
> that would work out any better in the end, but it has the advantage of
> not changing the source code.

Yes but it's more likely to go out of sync when renaming/removing classes etc.

The solution I used here is the one used by all of Qt, KDE libraries, and any
Qt-based library I ever saw. Probably because it's portable to Windows, unlike 
--version-script.

Qt additionally uses --version-script, but for another purpose it seems
(versioning, not selecting specific symbols). (see file attached).

-- 
David Faure, fa...@kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5
Qt_5 { *; };
Qt_5.0 {} Qt_5;
Qt_5.1 {} Qt_5.0;
Qt_5.2 {} Qt_5.1;
Qt_5.3 {} Qt_5.2;
Qt_5.4 {} Qt_5.3;
Qt_5.5 {} Qt_5.4;
Qt_5.6 {} Qt_5.5;
Qt_5.7 {} Qt_5.6;
------------------------------------------------------------------------------
_______________________________________________
Rosegarden-devel mailing list
Rosegarden-devel@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to