2009/7/17 bardo <ilba...@gmail.com>: > A (temporary and very ugly) workaround, for those who work with only > one architecture, is linking files in, for example, /usr/avr/lib/avr4/ > to /usr/avr/lib/, paying attention to backup files by the same name > (libm.a, libc.a...).
Ingo Becker notified me of a much better workaround: add -B/usr/avr/lib/yourarch to the gcc command line. For example: $ avr-gcc -mcpu=atmega8 -O2 -Wall -B/usr/avr/lib/avr4 source.c