[gobject-introspection/wip/ebassi/meson: 3/4] meson: Use symbol visibility for giscanner module
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/wip/ebassi/meson: 3/4] meson: Use symbol visibility for giscanner module
- Date: Tue, 28 Nov 2017 11:56:32 +0000 (UTC)
commit 0c92d330dc3854bb258ea326e3d806af8ec8993b
Author: Emmanuele Bassi <ebassi gnome org>
Date: Wed Nov 22 16:23:49 2017 +0000
meson: Use symbol visibility for giscanner module
Remove the existing TODO and avoid playing games with the linker. We
already have a mechanism in place for controlling he visibility of our
symbols.
giscanner/giscannermodule.c | 2 +-
giscanner/meson.build | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/giscanner/giscannermodule.c b/giscanner/giscannermodule.c
index 4c1f00f..77de82d 100644
--- a/giscanner/giscannermodule.c
+++ b/giscanner/giscannermodule.c
@@ -53,7 +53,7 @@
#endif
/* forward declaration */
-MOD_INIT(_giscanner);
+_GI_EXTERN MOD_INIT(_giscanner);
#define NEW_CLASS(ctype, name, cname, num_methods) \
static const PyMethodDef _Py##cname##_methods[num_methods]; \
diff --git a/giscanner/meson.build b/giscanner/meson.build
index 73e3901..e2df60e 100644
--- a/giscanner/meson.build
+++ b/giscanner/meson.build
@@ -68,9 +68,9 @@ giscanner_lib = static_library('giscanner',
dependencies: gio_dep,
)
-# TODO: -export-symbols-regex "init_giscanner|PyInit__giscanner"
giscanner_pymod = py3.extension_module('_giscanner', 'giscannermodule.c',
link_with: giscanner_lib,
+ c_args: [ gi_hidden_visibility_cflags ],
dependencies: [
gobject_dep,
dependency('python3'),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]