building gcc-2.95 for linux -> m68k-elf
Brendan Simon
brendan@dgs.monash.edu.au
Mon Aug 9 21:41:00 GMT 1999
Eric Smith wrote:
> I'm trying to build 2.95 as a linux -> m68k-elf cross-compiler with newlib.
> I configured it like:
>
> ../gcc-2.95/configure --target=m68k-elf --prefix=/usr/local --with-gnu-as \
> --with-gnu-ld --enable-languages=c++ --with-newlib
I would add "--program-prefix=m68k-elf-" to your configure arguments, but I don't think it is mandatory.
> I tried copying the newlib includes into /usr/local/m68k-elf/include, but
> that didn't help. Are they supposed to be somewhere else?
Yep, that looks OK. I'm pretty sure that it looks in $prefix/$target/include for header files and $prefix/$target/lib for library files.
When I use newlib, I use the --with-headers option instead of copying them. The "make" or "make all" step will install them to the right place. Try "--with-headers=<newlib-path>/newlib/libc/include" in your configure arguments.
Brendan Simon.
PS. I haven't tried gcc-2.95 yet and I have only built cross-compilers for powerpc-linux and powerpc-eabi targets.
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.
More information about the crossgcc
mailing list