From 38ed53fcde416c06f5b8e56c0b8405beb44b16cc Mon Sep 17 00:00:00 2001 From: Wenzong Fan Date: Thu, 24 Sep 2015 07:06:25 -0400 Subject: [PATCH] gd: cleanup buildpaths from gdlib.pc * gdlib.pc: -L/path/to/tmp/sysroots/qemux86-64/usr/lib64 -> -L/usr/lib64 Signed-off-by: Wenzong Fan Signed-off-by: Martin Jansa --- meta-oe/recipes-support/gd/gd_2.1.1.bb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta-oe/recipes-support/gd/gd_2.1.1.bb b/meta-oe/recipes-support/gd/gd_2.1.1.bb index 62008dfb32..85c7e6a051 100644 --- a/meta-oe/recipes-support/gd/gd_2.1.1.bb +++ b/meta-oe/recipes-support/gd/gd_2.1.1.bb @@ -32,6 +32,11 @@ EXTRA_OECONF += " --disable-rpath \ EXTRA_OEMAKE = 'LDFLAGS="${LDFLAGS}"' +do_install_append() { + # cleanup buildpaths from gdlib.pc + sed -i -e 's#${STAGING_DIR_HOST}##g' ${D}${libdir}/pkgconfig/gdlib.pc +} + PACKAGES += "${PN}-tools" FILES_${PN} = "${libdir}/lib*${SOLIBS}"