[OE-core] [PATCH 3/3 v2] gnutls: cleanup buildpaths from gnutls.pc
wenzong.fan at windriver.com
wenzong.fan at windriver.com
Wed Sep 30 08:09:00 UTC 2015
From: Wenzong Fan <wenzong.fan at 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.fan at 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
More information about the Openembedded-core
mailing list