summaryrefslogtreecommitdiff
path: root/classes/pkgconfig.bbclass
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2007-07-25 12:33:35 +0000
committerKoen Kooi <koen@openembedded.org>2007-07-25 12:33:35 +0000
commit8833df14d493957fa9eebb923eea3ebdd49bab4c (patch)
tree7856e18d4d9082ac2674d13bd1e2f6fb0ac14856 /classes/pkgconfig.bbclass
parent5a105ac5def74e53bb856c24a0b408558402731a (diff)
pkgconfig.bbclass: mangle some more workdir occurences
Diffstat (limited to 'classes/pkgconfig.bbclass')
-rw-r--r--classes/pkgconfig.bbclass9
1 files changed, 9 insertions, 0 deletions
diff --git a/classes/pkgconfig.bbclass b/classes/pkgconfig.bbclass
index f2054b0b07..cd6e04731e 100644
--- a/classes/pkgconfig.bbclass
+++ b/classes/pkgconfig.bbclass
@@ -17,8 +17,17 @@ def get_pkgconfig_mangle(d):
s += " -e 's:OEDATADIR:${STAGING_DATADIR}:'"
s += " -e 's:OEPREFIX:${STAGING_LIBDIR}/..:'"
s += " -e 's:OEEXECPREFIX:${STAGING_LIBDIR}/..:'"
+ s += " -e 's:-L${WORKDIR}\S*: :g'"
+ s += " -e 's:-I${WORKDIR}\S*: :g'"
+
return s
+do_install_append () {
+ for pc in `find ${D} -name '*.pc' -type f | grep -v -- '-uninstalled.pc$'`; do
+ sed -i ${@get_pkgconfig_mangle(d)} ${pc}
+ done
+}
+
do_stage_append () {
for pc in `find ${S} -name '*.pc' -type f | grep -v -- '-uninstalled.pc$'`; do
pcname=`basename $pc`