summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-10-30 00:38:50 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-11-10 13:44:15 +0000
commit1eda5c633552097442aaa7c6ef01776798685184 (patch)
treeab2f8958297b7a0b07c8f5bd0f9f36ed6696d96e
parent6c47bea276c5a5bc97abb81bae9288421ae89607 (diff)
autotools.bbclass: Convert .la file mangling to package preprocessing hook
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r--classes/autotools.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/classes/autotools.bbclass b/classes/autotools.bbclass
index de76fe0ab4..e939883211 100644
--- a/classes/autotools.bbclass
+++ b/classes/autotools.bbclass
@@ -143,8 +143,10 @@ autotools_do_install() {
oe_runmake 'DESTDIR=${D}' install
}
-do_install_append() {
- for i in `find ${D} -name "*.la"` ; do \
+PACKAGE_PREPROCESS_FUNCS += "autotools_prepackage_lamangler"
+
+autotools_prepackage_lamangler () {
+ for i in `find ${PKGD} -name "*.la"` ; do \
sed -i -e '/^dependency_libs=/s,${WORKDIR}[[:alnum:]/\._+-]*/\([[:alnum:]\._+-]*\),${libdir}/\1,g' $i
sed -i -e s:${CROSS_DIR}/${HOST_SYS}::g $i
sed -i -e s:${CROSS_DIR}::g $i