diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-10-30 00:38:50 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-10 13:44:15 +0000 |
commit | 1eda5c633552097442aaa7c6ef01776798685184 (patch) | |
tree | ab2f8958297b7a0b07c8f5bd0f9f36ed6696d96e /classes/autotools.bbclass | |
parent | 6c47bea276c5a5bc97abb81bae9288421ae89607 (diff) |
autotools.bbclass: Convert .la file mangling to package preprocessing hook
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'classes/autotools.bbclass')
-rw-r--r-- | classes/autotools.bbclass | 6 |
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 |