On Mon, 2012-11-05 at 22:55 +0000, Richard Sandiford wrote:
> Steve Ellcey <sell...@mips.com> writes:
> > I am not sure how ld is supposed to find crt0.o in the uninstalled
> > setup, it exists in obj-mips-mti-elf/newlib/mips-mti-elf/libgloss/mips.
> 
> The newlib and libgloss flags are usually added by the dejagnu
> baseboard file.  E.g. for mips-sim.exp:
> 
> set_board_info cflags "[libgloss_include_flags] [newlib_include_flags]"
> set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags]"
> 
> Richard

Yup, I have those in my baseboard file.  When you configure GCC for a
mips-*-elf target, do you use --with-sysroot=XXXXX?  I don't, and the
build seems to work fine, but I was wondering if this is why GCC
couldn't find crt0.o until after it had been installed (into the same
directory home as newlib was installed to).

Steve Ellcey
sell...@mips.com

Reply via email to