summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2020-05-15 09:02:47 +0000
committerChristoph Reiter <reiter.christoph@gmail.com>2020-05-15 09:02:47 +0000
commit7c125f0d9ac36abae210b63e6e20c11ad6e67a2d (patch)
tree0babd5b673fc156a7d6d86d1533a42ef2bbc1750
parentf9a92fc3a4d380b4795eefda593082779763d792 (diff)
parentcea7ef1e4a5626de1332bc34e1962befb75c2976 (diff)
downloadgobject-introspection-7c125f0d9ac36abae210b63e6e20c11ad6e67a2d.tar.gz
Merge branch 'dumper-lto-fix' into 'master'
dumper: Fix missing symbols in LTO case or with overridden symbol visibility settings Closes #280 See merge request GNOME/gobject-introspection!216
-rw-r--r--giscanner/dumper.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/dumper.py b/giscanner/dumper.py
index 0c10a780..e4b6ea03 100644
--- a/giscanner/dumper.py
+++ b/giscanner/dumper.py
@@ -126,7 +126,7 @@ class DumpCompiler(object):
if len(self._get_type_functions) > 0:
for func in self._get_type_functions:
f.write("extern GType " + func + "(void);\n")
- f.write("GType (*GI_GET_TYPE_FUNCS_[])(void) = {\n")
+ f.write("G_MODULE_EXPORT GType (*GI_GET_TYPE_FUNCS_[])(void) = {\n")
first = True
for func in self._get_type_functions:
if first:
@@ -138,7 +138,7 @@ class DumpCompiler(object):
if len(self._error_quark_functions) > 0:
for func in self._error_quark_functions:
f.write("extern GQuark " + func + "(void);\n")
- f.write("GQuark (*GI_ERROR_QUARK_FUNCS_[])(void) = {\n")
+ f.write("G_MODULE_EXPORT GQuark (*GI_ERROR_QUARK_FUNCS_[])(void) = {\n")
first = True
for func in self._error_quark_functions:
if first: