Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH 3/6] autotools.bbclass: Add --with-sysroot to configure
Date: Tue,  5 Oct 2010 00:44:00 -0700	[thread overview]
Message-ID: <1286264643-6352-4-git-send-email-raj.khem@gmail.com> (raw)
In-Reply-To: <1286264643-6352-1-git-send-email-raj.khem@gmail.com>

* --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 <raj.khem@gmail.com>
---
 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




  parent reply	other threads:[~2010-10-05  7:44 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-05  7:43 [PATCH 0/6] libtool 2.4 upgrade Khem Raj
2010-10-05  7:43 ` [PATCH 1/6] libtool-2.4: Add recipes for libtool 2.4 Khem Raj
2010-10-05  8:16   ` Holger Freyther
2010-10-05 18:35     ` Khem Raj
2010-10-05  7:43 ` [PATCH 2/6] bitbake.conf: No need to add sysroot to -rpath-link or -L in TARGET_LDFLAGS Khem Raj
2010-10-05  7:44 ` Khem Raj [this message]
2010-10-05  7:44 ` [PATCH 4/6] cross.bbclass, staging.bbclass, utils.bbclass: With sysroot support in libtool, its not needed to edit .la files Khem Raj
2010-10-05  7:44 ` [PATCH 5/6] insane.bbclass: Do not check for installed=yes in " Khem Raj
2010-10-05  7:44 ` [PATCH 6/6] gnutls_2.10.1.bb: Update to libtools 2.4 macros Khem Raj
2010-10-05  8:24   ` Holger Freyther
2010-10-05 18:37     ` Khem Raj
2010-10-05 10:38 ` [PATCH 0/6] libtool 2.4 upgrade Koen Kooi
2010-10-05 13:15   ` Frans Meulenbroeks
2010-10-05 15:15   ` Tom Rini
2010-10-05 16:13     ` Koen Kooi
2010-10-05 17:50       ` Frans Meulenbroeks
2010-10-05 18:41     ` Khem Raj
2010-10-05 18:40   ` Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1286264643-6352-4-git-send-email-raj.khem@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox