OSDN Git Service

* config/mips/linux64.h (LIB_SPEC): Add missing -lc and correct
[pf3gnuchains/gcc-fork.git] / gcc / config / mips / linux64.h
index c78e789..6ccb496 100644 (file)
@@ -46,11 +46,13 @@ Boston, MA 02111-1307, USA.  */
 
 #undef LIB_SPEC
 #define LIB_SPEC "\
+%{shared: -lc} \
 %{!static: \
  %{mabi=n32:-rpath-link %R/lib32:%R/usr/lib32} \
  %{mabi=64:-rpath-link %R/lib64:%R/usr/lib64} \
  %{mabi=32:-rpath-link %R/lib:%R/usr/lib}} \
-%{!shared: %{pthread:-lthread} %{profile:-lc_p} %{!profile: -lc}}"
+%{!shared: %{pthread:-lpthread} \
+  %{profile:-lc_p} %{!profile: -lc}}"
 
 #undef LINK_SPEC
 #define LINK_SPEC "\