Skip to contentSkip to conversation

gd: cleanup buildpaths from gdlib.pc

PATCH New [email protected] 1 participant 1 message Sep 24, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gd: cleanup buildpaths from gdlib.pc

From: Wenzong Fan <[email protected]>

* gdlib.pc:
-L/path/to/tmp/sysroots/qemux86-64/usr/lib64 -> -L/usr/lib64

---
 meta-oe/recipes-support/gd/gd_2.1.1.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta-oe/recipes-support/gd/gd_2.1.1.bb +5 -0
index 62008df..85c7e6a 100644
@@ -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}"
Signature · 1 line
1.9.1