summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2020-05-14 09:41:43 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2020-05-15 00:10:00 +0200
commitcea7ef1e4a5626de1332bc34e1962befb75c2976 (patch)
tree0babd5b673fc156a7d6d86d1533a42ef2bbc1750 /docs
parentf9a92fc3a4d380b4795eefda593082779763d792 (diff)
downloadgobject-introspection-cea7ef1e4a5626de1332bc34e1962befb75c2976.tar.gz
dumper: Fix missing symbols in LTO case or with overridden symbol visibility settings
In case a user had a combination of -fvisibility=hidden, -Wl,--as-needed, -flto, -O2 in the CFLAGS the linker would sometimes detect that all the referenced gtype functions weren't actually used and throw them out with their providing libraries. Instead of hoping that the user's CFLAGS don't mess without our symbol visibility just use G_MODULE_EXPORT on the two symbols which reference all other gtype and gquark symbols. This fixes errors such as: Invalid GType function: 'gtk_accel_group_get_type' Failed to find symbol 'gtk_accel_group_get_type' during the g-ir-scanner execution. Fixes #280
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions