summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-10-30 00:39:07 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-11-13 12:15:22 +0000
commitcbcad726fe019e2825229fd075298050796beaf2 (patch)
treebdb9dcdfd9b61468cf1e438452e388046602c17a
parent99cdb59aed345dd616f511686d0b6444830b83a1 (diff)
downloadopenembedded-core-cbcad726fe019e2825229fd075298050796beaf2.tar.gz
openembedded-core-cbcad726fe019e2825229fd075298050796beaf2.tar.bz2
openembedded-core-cbcad726fe019e2825229fd075298050796beaf2.zip
autotools.bbclass: Convert .la file mangling to package preprocessing hook
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r--meta/classes/autotools.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 8aa035191e..509c6f4eae 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -140,8 +140,12 @@ autotools_do_configure() {
autotools_do_install() {
oe_runmake 'DESTDIR=${D}' install
+}
+
+PACKAGE_PREPROCESS_FUNCS += "autotools_prepackage_lamangler"
- for i in `find ${D} -name "*.la"` ; do \
+autotools_prepackage_lamangler () {
+ for i in `find ${PKGD} -name "*.la"` ; do \
sed -i -e s:${STAGING_LIBDIR}:${libdir}:g $i
sed -i -e s:${D}::g $i
sed -i -e 's:-I${WORKDIR}\S*: :g' $i