[gobject-introspection/wip/meson: 20/23] meson: Use symbol visibility for giscanner module
- From: Nirbheek Chauhan <nirbheekc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/wip/meson: 20/23] meson: Use symbol visibility for giscanner module
- Date: Tue, 28 Nov 2017 12:38:27 +0000 (UTC)
commit fc1377b55e265c5e8559018aed5b6e229d6e7cc3
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 5a92a16..dc166f5 100644
--- a/giscanner/meson.build
+++ b/giscanner/meson.build
@@ -72,9 +72,9 @@ giscanner_lib = static_library('giscanner',
dependencies: [glib_dep, gobject_dep, gio_dep, gmodule_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: [glib_dep, gobject_dep, gio_dep, gmodule_dep,
dependency('python3')],
install: true,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]