Volker Kuhlmann <list0...@paradise.net.nz> wrote:

> I am trying to package up an AVR tool chain again, but am unable to get
> avr-gcc to run its own assembler instead of the host one.

You have to include $PREFIX/bin into your PATH.

> ../gcc-4.8.1/configure \
>       -v \
>       --prefix=/usr/avr \
>       --exec-prefix=/usr/avr \
>       --bindir=/usr/avr/bin \
>       --libdir=/usr/avr/lib64 \
>       --libexecdir=/usr/avr/lib64 \
>       --mandir=/usr/avr/share/man \
>       --infodir=/usr/avr/share/info \

Just keep it as --prefix=/usr/avr, and let it decide about the rest
by itself.

> So prefix is /usr/avr. I figure /usr will never work for a cross
> compiler because it clashes with the host's compiler's lib and include.

/usr does work.  All those things that are really different for the
cross compilation environment are installed unter a different name.
The only clashes I know of are related to documentation files and
perhaps internationalization (message catalogs).

Of course, your binutils should have been configured and installed using
the same prefix as your AVR-GCC.
-- 
cheers, Joerg               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)

_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to