This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] enabling gprof for cross builds
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: Sanjay Chadha <sanjay at s5systems dot com>
- Cc: binutils at sourceware dot org
- Date: Thu, 12 Apr 2007 10:45:49 +1000
- Subject: Re: [PATCH] enabling gprof for cross builds
- References: <000301c77ace$ee740120$1f28a8c0@Alps>
On Mon, 2007-04-09 at 13:45 -0400, Sanjay Chadha wrote:
> [schadha@devjava1-fc4 binutils-2.15.91.0.2]$ ./configure
> --target=mipsel-linux --host==mipsel-linux
> [schadha@devjava1-fc4 binutils-2.15.91.0.2]$ make
>
> However the compiled gprof was compiled for the host (i386) machine. Any
> ideas of what other changes may be required to cross compile gprof for
> the mips machine.
gprof runs on the host, not on the target (but it reads target object
code, of course). In your configure command line above, I see you used
==, not =. Perhaps that is your problem.
Ben