diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 965fa3399479b7be616e0e0a02c497ade7e6cd53..98229a4df20342d64f9b884ddd7efbcde4a29a34 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+1999-08-20  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
+
+	* linux.h (LIB_SPEC): Added.
+
 Fri Aug 20 22:32:17 1999  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
 
 	* config/c4x/c4x.h (STARTFILE_SPEC): Don't define.
diff --git a/gcc/config/mips/linux.h b/gcc/config/mips/linux.h
index f4ed424a60564a6d3667227d5b711f1b06129537..2ca30ea3d848ccc1552d2485cc7a3d70ae9154ba 100644
--- a/gcc/config/mips/linux.h
+++ b/gcc/config/mips/linux.h
@@ -55,6 +55,13 @@ Boston, MA 02111-1307, USA.  */
 #undef MIPS_DEFAULT_GVALUE
 #define MIPS_DEFAULT_GVALUE 0
 
+#undef LIB_SPEC
+/* Taken from sparc/linux.h.  */
+#define LIB_SPEC \
+  "%{shared: -lc} \
+   %{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \
+     %{profile:-lc_p} %{!profile: -lc}}"
+
 /* Borrowed from sparc/linux.h */
 #undef LINK_SPEC
 #define LINK_SPEC "-Y P,/usr/lib %{shared:-shared} \