summaryrefslogtreecommitdiff
path: root/classes/pkgconfig.bbclass
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2009-11-12 03:08:38 +0300
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2009-11-12 03:08:38 +0300
commitde8ffe4113d99413430db87830837042920a3ed9 (patch)
tree75436606c5fea6876dc0464965db02448b27e70d /classes/pkgconfig.bbclass
parentbf132a8996db2e75ce4d9e754ea50fa487c52160 (diff)
parent98c4cef80ccac7e109e8479ac3902b6ef24ff16f (diff)
Merge commit 'origin/org.openembedded.dev' into org.openembedded.dev
Diffstat (limited to 'classes/pkgconfig.bbclass')
-rw-r--r--classes/pkgconfig.bbclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/classes/pkgconfig.bbclass b/classes/pkgconfig.bbclass
index 2a8199d135..de892b5413 100644
--- a/classes/pkgconfig.bbclass
+++ b/classes/pkgconfig.bbclass
@@ -9,10 +9,12 @@ for i in `find ${S}/ -name "*.pc" -type f` ; do \
done
}
-do_stage_append () {
- install -d ${PKG_CONFIG_DIR}
+SYSROOT_PREPROCESS_FUNCS += "pkgconfig_sysroot_preprocess"
+
+pkgconfig_sysroot_preprocess () {
+ install -d ${SYSROOT_DESTDIR}${PKG_CONFIG_DIR}
for pc in `find ${S} -name '*.pc' -type f | grep -v -- '-uninstalled.pc$'`; do
pcname=`basename $pc`
- cat $pc > ${PKG_CONFIG_DIR}/$pcname
+ cat $pc > ${SYSROOT_DESTDIR}${PKG_CONFIG_DIR}/$pcname
done
}