diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2e7f4034386446098b7fc088f0eac3276b1430f4..d488377dad60696ab770aa9b38ab2640e096d180 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2011-01-14  Joseph Myers  <joseph@codesourcery.com>
+
+	* config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
+	-nodefaultlib.
+
 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
 
 	* config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
diff --git a/gcc/config/i386/nwld.h b/gcc/config/i386/nwld.h
index c0d57bc55cbb24e6b78dcfa4b8e3f989572e0669..6d8e54ff990a5b8fd3e3409a93f42a3786b21f7a 100644
--- a/gcc/config/i386/nwld.h
+++ b/gcc/config/i386/nwld.h
@@ -1,6 +1,6 @@
 /* nwld.h -- defines to be used when targeting GCC for some generic NetWare
    system while using the Novell linker.
-   Copyright (C) 2004, 2007, 2010 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2007, 2010, 2011 Free Software Foundation, Inc.
 
    Written by Jan Beulich (jbeulich@novell.com)
 
@@ -31,7 +31,7 @@ along with GCC; see the file COPYING3.  If not see
 
 #undef  LINK_SPEC
 #define LINK_SPEC "--format:NLM --extensions:GNU" \
-	" %{static:%{!nostdlib:%{!nodefaultlib:%estatic linking is not supported\n}}}"
+	" %{static:%{!nostdlib:%{!nodefaultlibs:%estatic linking is not supported\n}}}"
 
 #undef  LINK_GCC_C_SEQUENCE_SPEC
 #define LINK_GCC_C_SEQUENCE_SPEC "%L %G"