diff options
-rw-r--r-- | meta/recipes-gnome/gobject-introspection/gobject-introspection_1.48.0.bb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.48.0.bb b/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.48.0.bb index 6948aff2fa..eca6ce00a0 100644 --- a/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.48.0.bb +++ b/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.48.0.bb @@ -158,3 +158,16 @@ gi_binaries_sysroot_preprocess() { -e "s|g_ir_compiler=.*|g_ir_compiler=${bindir}/g-ir-compiler-wrapper|" \ ${SYSROOT_DESTDIR}${libdir}/pkgconfig/gobject-introspection-1.0.pc } + +# Need to ensure ld.so.conf exists so prelink-native works +# both before we build and if we install from sstate +do_configure[prefuncs] += "gobject_introspection_preconfigure" +python gobject_introspection_preconfigure () { + oe.utils.write_ld_so_conf(d) +} + +SSTATEPOSTINSTFUNCS += "gobject_introspection_postinst" +python gobject_introspection_postinst () { + if d.getVar("BB_CURRENTTASK", True).startswith("populate_sysroot"): + oe.utils.write_ld_so_conf(d) +} |