From 56fb2b3625d4e32d019024e9c5f8a5d07e185f38 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 15 Dec 2010 02:32:24 +0000 Subject: [PATCH] arc.h (LIB_SPEC): Define. * config/arc/arc.h (LIB_SPEC): Define. * config.gcc (arc-*-elf*): Don't use svr4.h. From-SVN: r167840 --- gcc/ChangeLog | 5 +++++ gcc/config.gcc | 2 +- gcc/config/arc/arc.h | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7a58fde..1519ede 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2010-12-14 Joseph Myers + * config/arc/arc.h (LIB_SPEC): Define. + * config.gcc (arc-*-elf*): Don't use svr4.h. + +2010-12-14 Joseph Myers + * config/sh/elf.h (LIB_SPEC): Define. * config.gcc (sh-*-elf* | sh[12346l]*-*-elf* | sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* | sh[2346lbe]*-*-linux* | diff --git a/gcc/config.gcc b/gcc/config.gcc index 273819a..93ad309 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -761,7 +761,7 @@ alpha*-dec-*vms*) extra_options="${extra_options} vms/vms.opt" ;; arc-*-elf*) - tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}" + tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}" extra_parts="crtinit.o crtfini.o" ;; arm-wrs-vxworks) diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h index 8a08818..0f2b99c 100644 --- a/gcc/config/arc/arc.h +++ b/gcc/config/arc/arc.h @@ -29,6 +29,7 @@ along with GCC; see the file COPYING3. If not see #undef ASM_SPEC #undef LINK_SPEC +#undef LIB_SPEC #undef STARTFILE_SPEC #undef ENDFILE_SPEC #undef SIZE_TYPE @@ -66,6 +67,8 @@ along with GCC; see the file COPYING3. If not see #define LINK_SPEC "%{v} %{EB} %{EL}" +#define LIB_SPEC "-lc" + #define STARTFILE_SPEC "%{!shared:crt0.o%s} crtinit.o%s" #define ENDFILE_SPEC "crtfini.o%s" -- 2.7.4