* --with-sysroot is needed for a package to use the sysroot support
  enabled in libtool
* .la files are not needed to be mangled anymore

Signed-off-by: Khem Raj <[email protected]>
---
 classes/autotools.bbclass |   14 +-------------
 1 files changed, 1 insertions(+), 13 deletions(-)

diff --git a/classes/autotools.bbclass b/classes/autotools.bbclass
index b2de2b1..0902a98 100644
--- a/classes/autotools.bbclass
+++ b/classes/autotools.bbclass
@@ -79,7 +79,7 @@ CONFIGUREOPTS = " --build=${BUILD_SYS} \
 
 oe_runconf () {
        if [ -x ${S}/configure ] ; then
-               ${S}/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@"
+               ${S}/configure --with-sysroot ${CONFIGUREOPTS} ${EXTRA_OECONF} 
"$@"
        else
                oefatal "no configure script found"
        fi
@@ -170,18 +170,6 @@ autotools_do_install() {
        oe_runmake 'DESTDIR=${D}' install
 }
 
-PACKAGE_PREPROCESS_FUNCS += "autotools_prepackage_lamangler"
-
-autotools_prepackage_lamangler () {
-        for i in `find ${PKGD} -name "*.la"` ; do \
-            sed -i -e 's:${STAGING_LIBDIR}:${libdir}:g;' \
-                   -e 's:${D}::g;' \
-                   -e 's:-I${WORKDIR}\S*: :g;' \
-                   -e 's:-L${WORKDIR}\S*: :g;' \
-                   $i
-       done
-}
-
 # STAGE_TEMP_PREFIX is used for a speedup by packaged-staging
 STAGE_TEMP="${WORKDIR}/temp-staging"
 STAGE_TEMP_PREFIX = ""
-- 
1.7.1


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to