From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22642 invoked by alias); 3 Oct 2006 23:16:31 -0000 Received: (qmail 22634 invoked by uid 22791); 3 Oct 2006 23:16:31 -0000 X-Spam-Check-By: sourceware.org Received: from mail.zeugmasystems.com (HELO zeugmasystems.com) (192.139.122.66) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 03 Oct 2006 23:16:28 +0000 Content-class: urn:content-classes:message Subject: RE: How to coerce gdb into pseudo-cross-compiling when build == host? MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Tue, 03 Oct 2006 23:16:00 -0000 Message-ID: <66910A579C9312469A7DF9ADB54A8B7D3E6E82@exchange.ZeugmaSystems.local> From: "Kaz Kylheku" To: X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00015.txt.bz2 David Daney wrote:=20 > Kaz Kylheku wrote: > > I'm building a Linux system from scratch. Everything builds=20 > for MIPS and > > i686 using the same script, except for gdb. >=20 > 'path_to_gdb/configure --build=3Di686-pc-linux-gnu=20 > --target=3Dmipsel-linux=20 > --host=3Dmipsel-linux' does not work for you? Oops, I didn't make myself perfectly clear. The MIPS cross-compile works fine. It's when I have --build=3Di686-linux --target=3Di686-linux --host=3Di686-linux that it decides that there is no cross-compiling, and starts just using plain gcc for compiling and linking. So gdb ends up picking up my local /lib/libncurses.so.5. I lied to it by doing this: --build=3Di686-bsd --target=3Di686-linux --host=3Di686-linux But there has to be a better way.