Ticket #471: gcc-3.3.2-rc-20030908-1.diff

File gcc-3.3.2-rc-20030908-1.diff, 623 bytes (added by Ralf Corsepius, on Dec 3, 2006 at 1:31:13 PM)

gcc-3.3.2-rc-20030908-1.diff

  • gcc-3.3.2/gcc/config/rtems.h

     
    3535
    3636#undef ENDFILE_SPEC
    3737#define ENDFILE_SPEC   ""
     38
     39/*
     40 * Some targets do not set up LIB_SPECS, override it, here.
     41 */
     42#define STD_LIB_SPEC "%{!shared:%{g*:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}"
     43
     44#undef LIB_SPEC
     45#define LIB_SPEC "%{!qrtems: " STD_LIB_SPEC "} " \
     46"%{!nostdlib: %{qrtems: --start-group \
     47 %{!qrtems_debug: -lrtemsbsp -lrtemscpu} \
     48 %{qrtems_debug: -lrtemsbsp_g -lrtemscpu_g} \
     49 -lc -lgcc --end-group %{!qnolinkcmds: -T linkcmds%s}}}"