From 1c40516d66c60fa211db7b535f93801802d2ff3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 28 Oct 2019 17:57:52 +0100 Subject: Add KDE_EXPORT to public library symbols. This fix build with gcc hidden visibility. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- CMakeLists.txt | 2 +- tdenetworkmanager/src/tdenetman-plugin.h | 3 ++- tdenetworkmanager/src/tdenetman-vpnplugin.h | 7 +++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e7798a6..1d31a3b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,7 +48,7 @@ endif( ) ##### optional stuff ############################ option( WITH_ALL_OPTIONS "Enable all optional support" OFF ) -option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" OFF ) +option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} ) option( WITH_OPENVPN "Enable openvpn support" ${WITH_ALL_OPTIONS} ) option( WITH_PPTP "Enable pptp support" ${WITH_ALL_OPTIONS} ) option( WITH_VPNC "Enable vpnc support" ${WITH_ALL_OPTIONS} ) diff --git a/tdenetworkmanager/src/tdenetman-plugin.h b/tdenetworkmanager/src/tdenetman-plugin.h index 9ddde0f..ad6251d 100644 --- a/tdenetworkmanager/src/tdenetman-plugin.h +++ b/tdenetworkmanager/src/tdenetman-plugin.h @@ -26,8 +26,9 @@ #define TDENETWORKMANAGER_PLUGIN_H #include +#include -class Plugin : public TQObject +class KDE_EXPORT Plugin : public TQObject { Q_OBJECT diff --git a/tdenetworkmanager/src/tdenetman-vpnplugin.h b/tdenetworkmanager/src/tdenetman-vpnplugin.h index b345136..1215c05 100644 --- a/tdenetworkmanager/src/tdenetman-vpnplugin.h +++ b/tdenetworkmanager/src/tdenetman-vpnplugin.h @@ -35,7 +35,7 @@ #define TDENETWORKMANAGER_VPNPLUGIN "TDENetworkManager/VPNPlugin" -class VPNConfigWidget : public TQWidget +class KDE_EXPORT VPNConfigWidget : public TQWidget { Q_OBJECT @@ -51,7 +51,7 @@ class VPNConfigWidget : public TQWidget virtual bool isValid(TQStringList&); }; -class VPNAuthenticationWidget : public TQWidget +class KDE_EXPORT VPNAuthenticationWidget : public TQWidget { Q_OBJECT @@ -65,7 +65,7 @@ class VPNAuthenticationWidget : public TQWidget virtual bool needsUserInteraction(); }; -class VPNPlugin : public Plugin +class KDE_EXPORT VPNPlugin : public Plugin { Q_OBJECT @@ -79,4 +79,3 @@ class VPNPlugin : public Plugin #endif /* TDENETWORKMANAGER_VPNPLUGIN_H */ - -- cgit v1.2.1