From: Wenzong Fan <wenzong....@windriver.com> 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 gnutls, the buildpaths should be cleaned up from: * gnutls.pc: generated from lib/gnutls.pc.in that includes @LTLIBZ@ Signed-off-by: Wenzong Fan <wenzong....@windriver.com> --- meta/recipes-support/gnutls/gnutls.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta/recipes-support/gnutls/gnutls.inc b/meta/recipes-support/gnutls/gnutls.inc index e9b138a..3c8d4c9 100644 --- a/meta/recipes-support/gnutls/gnutls.inc +++ b/meta/recipes-support/gnutls/gnutls.inc @@ -38,6 +38,11 @@ PACKAGECONFIG ??= "zlib" PACKAGECONFIG[tpm] = "--with-tpm, --without-tpm, trousers" PACKAGECONFIG[zlib] = "--with-zlib, --without-zlib, zlib" +do_install_append_class-target() { + # cleanup buildpaths from gnutls.pc + sed -i -e 's,${STAGING_DIR_HOST},,g' ${D}${libdir}/pkgconfig/gnutls.pc +} + PACKAGES =+ "${PN}-openssl ${PN}-xx" FILES_${PN}-dev += "${bindir}/gnutls-cli-debug" -- 1.9.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core