librpc: do not attempt to compile if uclibc is not selected
[openwrt/openwrt.git] / toolchain / gcc / patches / 4.3.5 / 939-avr32_fix_linux_build.patch
1 --- a/gcc/config.gcc
2 +++ b/gcc/config.gcc
3 @@ -836,7 +836,7 @@ avr-*-*)
4 ;;
5 avr32*-*-linux*)
6 tm_file="dbxelf.h elfos.h linux.h avr32/linux-elf.h avr32/avr32.h "
7 - tmake_file="t-linux avr32/t-avr32 avr32/t-elf"
8 + tmake_file="t-linux avr32/t-avr32-linux"
9 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
10 extra_modes=avr32/avr32-modes.def
11 gnu_ld=yes
12 --- a/libgcc/config.host
13 +++ b/libgcc/config.host
14 @@ -240,6 +240,11 @@ arm-*-pe*)
15 ;;
16 arm*-*-kaos*)
17 ;;
18 +avr32-*-linux*)
19 + # No need to build crtbeginT.o on uClibc systems. Should probably be
20 + # moved to the OS specific section above.
21 + extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
22 + ;;
23 avr32-*-*)
24 ;;
25 avr-*-rtems*)