All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Eric Bénard" <eric@eukrea.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH] gdb-cross-sdk: reconfigure before running oe_runmake configure-host
Date: Tue,  2 Nov 2010 15:56:39 +0100	[thread overview]
Message-ID: <1288709799-9891-1-git-send-email-eric@eukrea.com> (raw)
In-Reply-To: <4CD02461.3020106@eukrea.com>

so we have : configure then make configure-host which generates the
Makefile that we modify using sed to statically link the libs

Without this patch, we don't statically link libncurses, libtinfo
and libz which leads to :
/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gdb:
error while loading shared libraries: libtinfo.so.5:
cannot open shared object file: No such file or directory

when trying to use the toolchain.

Signed-off-by: Eric Bénard <eric@eukrea.com>
---
 recipes/gdb/gdb-cross-sdk.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/recipes/gdb/gdb-cross-sdk.inc b/recipes/gdb/gdb-cross-sdk.inc
index 6a708ca..e1d4895 100644
--- a/recipes/gdb/gdb-cross-sdk.inc
+++ b/recipes/gdb/gdb-cross-sdk.inc
@@ -8,6 +8,7 @@ EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils' L
 # add a depenency on the -sdk versions of them.
 do_configure_append () {
 	cd ${B}
+	oe_runconf
 	oe_runmake configure-host
 	sed -e 's,-lncurses,${STAGING_LIBDIR_NATIVE}/libncurses.a ${STAGING_LIBDIR_NATIVE}/libtinfo.a ,g' -i ${B}/gdb/Makefile
 	sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i ${B}/gdb/Makefile
@@ -16,5 +17,4 @@ do_configure_append () {
 	for SIM in ${B}/sim/*/Makefile; do
 		[ -f $SIM ] && sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i $SIM
 	done
-	oe_runconf
 }
-- 
1.6.3.3




  reply	other threads:[~2010-11-02 14:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-01 21:29 [PATCH] gdb-cross-sdk: don't reconfigure after making changes in gdb/Makefile Eric Bénard
2010-11-02  4:41 ` Khem Raj
2010-11-02 14:46   ` Eric Bénard
2010-11-02 14:56     ` Eric Bénard [this message]
2010-11-02 17:56       ` [PATCH] gdb-cross-sdk: reconfigure before running oe_runmake configure-host Khem Raj
2010-11-02 20:47         ` Tom Rini
2010-11-02 14:57     ` [PATCH] gdb-cross-sdk: don't reconfigure after making changes in gdb/Makefile Tom Rini
2010-11-02 16:43       ` Eric Bénard
2010-11-02 20:47         ` Tom Rini

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=1288709799-9891-1-git-send-email-eric@eukrea.com \
    --to=eric@eukrea.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.