[oe-commits] Richard Purdie : autotools.bbclass: Convert . la file mangling to package preprocessing hook
git version control
git at git.openembedded.org
Mon Nov 9 13:02:11 UTC 2009
Module: openembedded.git
Branch: rpurdie/work-in-progress
Commit: db67608163de47bbec0c7613bbf8081cd6248e1a
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=db67608163de47bbec0c7613bbf8081cd6248e1a
Author: Richard Purdie <rpurdie at linux.intel.com>
Date: Fri Oct 30 00:38:50 2009 +0000
autotools.bbclass: Convert .la file mangling to package preprocessing hook
Signed-off-by: Richard Purdie <rpurdie at linux.intel.com>
---
classes/autotools.bbclass | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/classes/autotools.bbclass b/classes/autotools.bbclass
index de76fe0..e939883 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
More information about the Openembedded-commits
mailing list