OSDN Git Service

Backport from 2012-09-05 mainline r190697.
[pf3gnuchains/gcc-fork.git] / gcc / config.gcc
index aef6ff9..0034c26 100644 (file)
@@ -941,6 +941,10 @@ avr-*-rtems*)
        ;;
 avr-*-*)
        tm_file="elfos.h avr/elf.h avr/avr.h dbxelf.h avr/avr-stdint.h"
        ;;
 avr-*-*)
        tm_file="elfos.h avr/elf.h avr/avr.h dbxelf.h avr/avr-stdint.h"
+       if test x${with_avrlibc} = xyes; then
+           tm_file="${tm_file} ${cpu_type}/avrlibc.h"
+           tm_defines="${tm_defines} WITH_AVRLIBC"
+       fi
        tmake_file="avr/t-avr avr/t-multilib"
        use_gcc_stdint=wrap
        extra_gcc_objs="driver-avr.o avr-devices.o"
        tmake_file="avr/t-avr avr/t-multilib"
        use_gcc_stdint=wrap
        extra_gcc_objs="driver-avr.o avr-devices.o"