summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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