190075Sobrien/* Configuration common to all targets running RTEMS. 2132718Skan Copyright (C) 2000, 2002, 2004 Free Software Foundation, Inc. 390075Sobrien 4132718SkanThis file is part of GCC. 590075Sobrien 6132718SkanGCC is free software; you can redistribute it and/or modify 790075Sobrienit under the terms of the GNU General Public License as published by 890075Sobrienthe Free Software Foundation; either version 2, or (at your option) 990075Sobrienany later version. 1090075Sobrien 11132718SkanGCC is distributed in the hope that it will be useful, 1290075Sobrienbut WITHOUT ANY WARRANTY; without even the implied warranty of 1390075SobrienMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1490075SobrienGNU General Public License for more details. 1590075Sobrien 1690075SobrienYou should have received a copy of the GNU General Public License 17132718Skanalong with GCC; see the file COPYING. If not, write to 18169689Skanthe Free Software Foundation, 51 Franklin Street, Fifth Floor, 19169689SkanBoston, MA 02110-1301, USA. */ 2090075Sobrien 2190075Sobrien/* The system headers under RTEMS are C++-aware. */ 2290075Sobrien#define NO_IMPLICIT_EXTERN_C 2396263Sobrien 2496263Sobrien/* 2596263Sobrien * Dummy start/end specification to let linker work as 2696263Sobrien * needed by autoconf scripts using this compiler. 2796263Sobrien */ 2896263Sobrien#undef STARTFILE_SPEC 2996263Sobrien#define STARTFILE_SPEC "crt0.o%s" 3096263Sobrien 3196263Sobrien#undef ENDFILE_SPEC 3296263Sobrien#define ENDFILE_SPEC "" 33132718Skan 34132718Skan/* 35132718Skan * Some targets do not set up LIB_SPECS, override it, here. 36132718Skan */ 37169689Skan#define STD_LIB_SPEC "%{!shared:%{g*:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}" 38132718Skan 39132718Skan#undef LIB_SPEC 40132718Skan#define LIB_SPEC "%{!qrtems: " STD_LIB_SPEC "} " \ 41132718Skan"%{!nostdlib: %{qrtems: --start-group \ 42132718Skan %{!qrtems_debug: -lrtemsbsp -lrtemscpu} \ 43132718Skan %{qrtems_debug: -lrtemsbsp_g -lrtemscpu_g} \ 44132718Skan -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}}" 45