diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2017-11-22 16:23:49 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2017-11-22 16:23:49 +0000 |
commit | 0c92d330dc3854bb258ea326e3d806af8ec8993b (patch) | |
tree | eb40570b8b16ecfc569b7d5cb42641a2a9208808 | |
parent | cb9254dd8e52e0048ae314966cf861b5279d39ec (diff) | |
download | gobject-introspection-0c92d330dc3854bb258ea326e3d806af8ec8993b.tar.gz |
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.
-rw-r--r-- | giscanner/giscannermodule.c | 2 | ||||
-rw-r--r-- | giscanner/meson.build | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/giscannermodule.c b/giscanner/giscannermodule.c index 4c1f00f3..77de82d6 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 73e3901f..e2df60e2 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'), |