diff --git a/gcc/config/mips/bsd-5.h b/gcc/config/mips/bsd-5.h
index e454a4f42e0..48d9d58dab8 100644
--- a/gcc/config/mips/bsd-5.h
+++ b/gcc/config/mips/bsd-5.h
@@ -38,7 +38,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 	%{EB} %{!EB: -EB} \
 	%{EL: %e-EL not supported} \
 	%{mips1} %{mips2} %{mips3} %{bestGnum} \
-	%{shared} %{non_shared} %{!shared: %{!non_shared: -non_shared}} \
+	%{shared} %{non_shared} %{call_shared} %{no_archive} %{exact_version} \
+	%{!shared: %{!non_shared: %{!call_shared: -non_shared}}}} \
 	-systype /bsd43/ }"
 		    
 #define LIB_SPEC "%{p:-lprof1} %{pg:-lprof1} -lc"
diff --git a/gcc/config/mips/dec-osf1.h b/gcc/config/mips/dec-osf1.h
index 632d3c7e325..850630828db 100644
--- a/gcc/config/mips/dec-osf1.h
+++ b/gcc/config/mips/dec-osf1.h
@@ -28,7 +28,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 	%{EL} %{!EL: -EL} \
 	%{EB: %e-EB not supported} \
 	%{mips1} %{mips2} %{mips3} %{bestGnum} \
-	%{shared} %{non_shared} %{!shared: %{!non_shared: -non_shared}}}"
+	%{shared} %{non_shared} %{call_shared} %{no_archive} %{exact_version} \
+	%{!shared: %{!non_shared: %{!call_shared: -non_shared}}}}"
 
 #include "decstatn.h"
 
diff --git a/gcc/config/mips/mips-5.h b/gcc/config/mips/mips-5.h
index 09a016669af..9f6d03bb743 100644
--- a/gcc/config/mips/mips-5.h
+++ b/gcc/config/mips/mips-5.h
@@ -24,6 +24,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 	%{EB} %{!EB: -EB} \
 	%{EL: %e-EL not supported} \
 	%{mips1} %{mips2} %{mips3} %{bestGnum} \
-	%{shared} %{non_shared} %{!shared: %{!non_shared: -non_shared}}"
+	%{shared} %{non_shared} %{call_shared} %{no_archive} %{exact_version} \
+	%{!shared: %{!non_shared: %{!call_shared: -non_shared}}}}"
 
 #include "mips.h"
diff --git a/gcc/config/mips/svr3-5.h b/gcc/config/mips/svr3-5.h
index d9af8c4a07e..a1dfeda5a7a 100644
--- a/gcc/config/mips/svr3-5.h
+++ b/gcc/config/mips/svr3-5.h
@@ -38,7 +38,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 	%{EB} %{!EB:-EB} \
 	%{EL: %e-EL not supported} \
 	%{mips1} %{mips2} %{mips3} %{bestGnum} \
-	%{shared} %{non_shared} %{!shared: %{!non_shared: -non_shared}} \
+	%{shared} %{non_shared} %{call_shared} %{no_archive} %{exact_version} \
+	%{!shared: %{!non_shared: %{!call_shared: -non_shared}}}} \
 	-systype /sysv/}"
 		    
 #define LIB_SPEC "%{p:-lprof1} %{pg:-lprof1} -lc crtn.o%s"
diff --git a/gcc/config/mips/svr4-5.h b/gcc/config/mips/svr4-5.h
index 2e58e7197c9..c25225d64b1 100644
--- a/gcc/config/mips/svr4-5.h
+++ b/gcc/config/mips/svr4-5.h
@@ -38,7 +38,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 	%{EB} %{!EB:-EB} \
 	%{EL: %e-EL not supported} \
 	%{mips1} %{mips2} %{mips3} %{bestGnum} \
-	%{shared} %{non_shared} %{!shared: %{!non_shared: -non_shared}} \
+	%{shared} %{non_shared} %{call_shared} %{no_archive} %{exact_version} \
+	%{!shared: %{!non_shared: %{!call_shared: -non_shared}}}} \
 	-systype /svr4/}"
 		    
 #define LIB_SPEC "%{p:-lprof1} %{pg:-lprof1} -lc crtn.o%s"