KDE4 build question: turning off hidden visibility?

Michael Pyne mpyne at kde.org
Sun Oct 14 00:39:02 BST 2018


On Thu, Oct 11, 2018 at 12:25:32PM +0200, René J.V. Bertin wrote:
> Hi,
> 
> Please excuse me for a question that's not directly related to KF5 frameworks; I don't know where else to reach an audience who might know (remember) the answer.
> 
> In short: how do I configure a build so it will use default (public) visibility for all symbols, preferably without patching something installed by kdelibs?

In theory it should be as simple as setting the option
-fvisibility=default in the CXXFLAGS used for the build in question.
This can be done in CMAKE_CXX_FLAGS, though try to do this in a way that
maintains the existing KDE settings.

Regards,
 - Michael Pyne


More information about the Kde-frameworks-devel mailing list