diff options
Diffstat (limited to 'gcc/config/rtems.h')
-rw-r--r-- | gcc/config/rtems.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/gcc/config/rtems.h b/gcc/config/rtems.h index a3f9ba301b4..a40e474ee8d 100644 --- a/gcc/config/rtems.h +++ b/gcc/config/rtems.h @@ -1,7 +1,7 @@ /* Configuration common to all targets running RTEMS. - Copyright (C) 2000, 2002 Free Software Foundation, Inc. + Copyright (C) 2000, 2002, 2004 Free Software Foundation, Inc. -This file is part of GNU CC. +This file is part of GCC. GNU CC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -35,3 +35,17 @@ Boston, MA 02111-1307, USA. */ #undef ENDFILE_SPEC #define ENDFILE_SPEC "" + +/* + * Some targets do not set up LIB_SPECS, override it, here. + */ +#define STD_LIB_SPEC \ + "%{!shared:%{g*:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}" + +#undef LIB_SPEC +#define LIB_SPEC "%{!qrtems: " STD_LIB_SPEC "} " \ +"%{!nostdlib: %{qrtems: --start-group \ + %{!qrtems_debug: -lrtemsbsp -lrtemscpu} \ + %{qrtems_debug: -lrtemsbsp_g -lrtemscpu_g} \ + -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}}" + |