--- gcc-3.4.0/gcc/config/arm/elf.h 2004-02-24 07:25:22.000000000 -0700 +++ gcc-3.4.0.new/gcc/config/arm/elf.h 2004-06-01 10:53:16.000000000 -0700 @@ -100,6 +100,13 @@ #define LINK_SPEC "%{mbig-endian:-EB} %{mlittle-endian:-EL} -X" #endif +/* Now we define the strings used to build the spec file. */ +#undef LIB_SPEC +#define LIB_SPEC \ + "%{pthread:-lpthread} \ + %{shared:-lc} \ + %{!shared:%{profile:-lc_p}%{!profile:-lc}}" + /* Run-time Target Specification. */ #ifndef TARGET_VERSION #define TARGET_VERSION fputs (" (ARM/elf)", stderr)