From: Paul Koning <pkoning@equallogic.com>
To: brobecker@adacore.com
Cc: gdb@sourceware.org
Subject: Re: cross-compile GDB ?
Date: Thu, 13 Sep 2007 18:41:00 -0000 [thread overview]
Message-ID: <18153.33553.274913.193263@pkoning-laptop.equallogic.com> (raw)
In-Reply-To: <20070913182842.GA3813@adacore.com>
>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:
Joel> Hello, I was wondering if anyone had tried cross-compiling
Joel> GDB. My goal is to build gdbserver for LynxOS 3 from a
Joel> sparc-solaris machine. Adding native support for LynxOS could
Joel> take a while, but I think that adding LynxOS support to the
Joel> gdbserver would allow me to use my version of GDB server. The
Joel> one that they distribute with LynxOS 3 is too old and doesn't
Joel> work well with newer versions of GDB (I think).
Joel> Is that possible at all? Right now, libiberty complains because
Joel> it is trying to test the compiler on the host by trying to run
Joel> a small test executable. It suggests to use the --host switch,
Joel> but doing that didn't help.
It works for me; we routinely build gdb (including gdbserver) for a
mips target on an i386 host. The switches are --host=<mipstarget>
--target=<mipstarget> --build=<i386host>. And of course you need a
toolchain (compiler etc) for the target.
I may have had to pass CC=<targetcompilername> as well, I'm not sure
if that's needed.
paul
next prev parent reply other threads:[~2007-09-13 18:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-13 18:36 Joel Brobecker
2007-09-13 18:41 ` Paul Koning [this message]
2007-09-13 18:58 ` Joel Brobecker
2007-09-13 18:47 ` DJ Delorie
2007-09-14 13:17 ` Stan Shebs
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=18153.33553.274913.193263@pkoning-laptop.equallogic.com \
--to=pkoning@equallogic.com \
--cc=brobecker@adacore.com \
--cc=gdb@sourceware.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