This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: search path for cross gcc
- From: Daniel Jacobowitz <drow at false dot org>
- To: Eric Fisher <joefoxreal at gmail dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Sun, 26 Mar 2006 23:25:00 -0500
- Subject: Re: search path for cross gcc
- References: <d6afecde0603262022x73a2257et@mail.gmail.com>
On Mon, Mar 27, 2006 at 12:22:07PM +0800, Eric Fisher wrote:
> Hi,
> I'd like to know how to set the search path of glibc for cross gcc. Suppose I
> have mips-linux-gcc installed, when I type 'mips-linux-gcc test.c -o
> test'. I think
> the tool chain should find the glibc of mips/linux autmatically. Yet, it's just
> the problem I'm meeting with. It can't be searched out.
> /tmp/ccOgTDmg.o(.text+0x154): In function `main':
> : undefined reference to `printf'
Please search for --with-sysroot (or use crosstool).
--
Daniel Jacobowitz
CodeSourcery