From cbcad726fe019e2825229fd075298050796beaf2 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 30 Oct 2009 00:39:07 +0000 Subject: autotools.bbclass: Convert .la file mangling to package preprocessing hook Signed-off-by: Richard Purdie --- meta/classes/autotools.bbclass | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3