From: Wenzong Fan <[email protected]> For multilib build, PKG_CONFIG_SYSROOT_DIR will be injected in values that are returned by 'pkg-config --libs xxx', such as for zlib:
dev-shell# pkg-config --libs zlib -L/path/to/tmp/sysroots/qemux86-64/usr/lib64 -lz The values used by configure to generate various files from templates. For glib-2.0, the buildpaths should be cleaned up from: * gio-2.0.pc: generated from gio-2.0.pc.in that includes @ZLIB_LIBS@ * gobject-2.0.pc: generated from gobject-2.0.pc.in that includes @LIBFFI_LIBS@ Signed-off-by: Wenzong Fan <[email protected]> --- meta/recipes-core/glib-2.0/glib.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc index 072f790..fb42eac 100644 --- a/meta/recipes-core/glib-2.0/glib.inc +++ b/meta/recipes-core/glib-2.0/glib.inc @@ -75,6 +75,12 @@ do_install_append () { fi } +do_install_append_class-target() { + # cleanup buildpaths from gio-2.0.pc, gobject-2.0.pc + sed -i -e 's,${STAGING_DIR_HOST},,g' ${D}${libdir}/pkgconfig/gio-2.0.pc + sed -i -e 's,${STAGING_DIR_HOST},,g' ${D}${libdir}/pkgconfig/gobject-2.0.pc +} + RDEPENDS_${PN}-ptest += "\ gnome-desktop-testing \ tzdata \ -- 1.9.1 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
