Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 8c7d3105 authored by Alvin Wong's avatar Alvin Wong

MinGW: Remove the --export-all-symbols linker flag

Instead of exporting all symbols, we should only export symbols that are
explicitly marked to be exported, like how it was done in the past when
Krita was compiled with MSVC.

Differential Revision: https://phabricator.kde.org/D9208
parent fcdff64a
......@@ -399,6 +399,13 @@ if(WIN32)
endif()
endif()
# KDECompilerSettings adds the `--export-all-symbols` linker flag.
# We don't really need it.
if(MINGW)
string(REPLACE "-Wl,--export-all-symbols" "" CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
string(REPLACE "-Wl,--export-all-symbols" "" CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS}")
endif(MINGW)
# enable exceptions globally
kde_enable_exceptions()
......
......@@ -1132,7 +1132,7 @@ public:
public:
struct ShapeChangeListener {
struct KRITAFLAKE_EXPORT ShapeChangeListener {
virtual ~ShapeChangeListener();
virtual void notifyShapeChanged(ChangeType type, KoShape *shape) = 0;
......
......@@ -112,7 +112,7 @@ public:
static QString mapExtendedShapeTag(const QString &tagName, const KoXmlElement &element);
struct PreserveAspectRatioParser
struct KRITAFLAKE_EXPORT PreserveAspectRatioParser
{
PreserveAspectRatioParser(const QString &str);
......
......@@ -90,7 +90,7 @@ public:
* hard-to-tack-down bugs when the dirty state will not be
* restored on jumps like 'return', 'break' or exception.
*/
class DirtyStateSaver {
class KRITAIMAGE_EXPORT DirtyStateSaver {
public:
DirtyStateSaver(KisPaintOpPreset *preset)
: m_preset(preset), m_isDirty(preset->isPresetDirty())
......@@ -110,7 +110,7 @@ public:
* @brief The UpdatedPostponer class
* @see KisPaintopSettingsUpdateProxy::postponeSettingsChanges()
*/
class UpdatedPostponer{
class KRITAIMAGE_EXPORT UpdatedPostponer{
public:
UpdatedPostponer(KisPaintOpPreset *preset);
......
......@@ -26,7 +26,7 @@ class KRITAIMAGE_EXPORT KisScalarKeyframeChannel : public KisKeyframeChannel
Q_OBJECT
public:
struct AddKeyframeCommand : public KisReplaceKeyframeCommand
struct KRITAIMAGE_EXPORT AddKeyframeCommand : public KisReplaceKeyframeCommand
{
AddKeyframeCommand(KisScalarKeyframeChannel *channel, int time, qreal value, KUndo2Command *parentCommand);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment