Warning

You must install avr-binutils, avr-gcc and make sure your path is set properly before installing avr-libc.

Note

If you have obtained the latest avr-libc from cvs, you will have to run the bootstrap script before using either of the build methods described below.

To build and install avr-libc:

$ gunzip -c avr-libc-<version>.tar.gz | tar xf - $ cd avr-libc-<version> $ ./configure --prefix=$PREFIX --build=`./config.guess` --host=avr $ make $ make install

Optionally, generation of debug information can be requested with:

$ gunzip -c avr-libc-<version>.tar.gz | tar xf - $ cd avr-libc-<version> $ ./configure --prefix=$PREFIX --build=`./config.guess` --host=avr \ --with-debug-info=DEBUG_INFO $ make $ make install

where DEBUG_INFO can be one of stabs, dwarf-2, or dwarf-4.

The default is to not generate any debug information, which is suitable for binary distributions of avr-libc, where the user does not have the source code installed the debug information would refer to.