%setup -q
%build
-export CFLAGS+=" -Werror"
-export CXXFLAGS+=" -Werror"
+export CFLAGS+=" -Werror -fvisibility=hidden"
+export CXXFLAGS+=" -Werror -fvisibility=hidden -fvisibility-inlines-hidden"
%autogen
%configure --prefix=%{_prefix} --disable-static
make %{?_smp_mflags}
#include <config.h>
#endif
+#define EXAPI __attribute__ ((visibility("default")))
+
#include <scim.h>
#include "kdb_resource.h"
#include "isf_default_imengine.h"
static int m_keypad_layout;
extern "C" {
- void scim_module_init(void) {
+ EXAPI void scim_module_init(void) {
bindtextdomain(GETTEXT_PACKAGE, ISF_DEFAULT_LOCALEDIR);
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
}
- void scim_module_exit(void) {
+ EXAPI void scim_module_exit(void) {
_scim_config.reset();
}
- uint32 scim_imengine_module_init(const ConfigPointer & config) {
+ EXAPI uint32 scim_imengine_module_init(const ConfigPointer & config) {
_scim_config = config;
return 1;
}
- IMEngineFactoryPointer scim_imengine_module_create_factory(uint32
+ EXAPI IMEngineFactoryPointer scim_imengine_module_create_factory(uint32
engine) {
DefaultFactory *factory = 0;