diff -ur libtool-20030210.orig/doc/libtool.texi libtool-20030210/doc/libtool.texi
--- libtool-20030210.orig/doc/libtool.texi	Tue Dec 31 18:02:20 2002
+++ libtool-20030210/doc/libtool.texi	Wed Feb 12 11:04:03 2003
@@ -1153,6 +1153,14 @@
 You can also pass compile specific flags using @samp{-Wc,@var{flag}}
 and @samp{-Xcompiler @var{flag}}.
 
+If the @samp{-no-shared} option is given, then no @samp{.lo} file
+suitable for dynamic linking is built, even if libtool was configured
+with @samp{--enable-shared}.
+
+If the @samp{-no-static} option is given, then no @samp{.o} file
+suitable for static linking is built, even if libtool was configured
+with @samp{--enable-static}.
+
 If the @samp{-static} option is given, then a @samp{.o} file is built,
 even if libtool was configured with @samp{--disable-static}.
 
@@ -1261,6 +1269,14 @@
 Link an executable @var{output-file} that can't be installed and
 therefore doesn't need a wrapper script.  Useful if the program is only
 used in the build tree, e.g., for testing or generating other files.
+
+@item -no-shared
+Do not create a shared library, even if libtool was configured with
+@samp{--enable-shared}.
+
+@item -no-static
+Do not create a static library, even if libtool was configured with
+@samp{--enable-static}.
 
 @item -no-undefined
 Declare that @var{output-file} does not depend on any other libraries.
diff -ur libtool-20030210.orig/ltmain.in libtool-20030210/ltmain.in
--- libtool-20030210.orig/ltmain.in	Wed Jan 29 18:07:44 2003
+++ libtool-20030210/ltmain.in	Wed Feb 12 10:51:58 2003
@@ -392,6 +392,16 @@
 	  continue
 	  ;;
 
+	-no-shared)
+	  build_libtool_libs=no
+	  continue
+	  ;;
+
+	-no-static)
+	  build_old_libs=no
+	  continue
+	  ;;
+
 	-static)
 	  build_old_libs=yes
 	  continue
@@ -478,6 +488,11 @@
       ;;
     esac
 
+    if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
+      echo "$modename: nothing to do" 1>&2
+      exit 1
+    fi
+
     # Recognize several different file suffixes.
     # If the user specifies -o file.o, it is replaced with file.lo
     xform='[cCFSifmso]'
@@ -1374,6 +1389,16 @@
 	continue
 	;;
 
+      -no-shared)
+	build_libtool_libs=no
+	continue
+	;;
+
+      -no-static)
+	build_old_libs=no
+	continue
+	;;
+
       -static)
 	# The effects of -static are defined in a previous loop.
 	# We used to do the same as -all-static on platforms that
@@ -1605,6 +1630,11 @@
       exit 1
     fi
 
+    if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
+      echo "$modename: nothing to do" 1>&2
+      exit 1
+    fi
+
     # Infer tagged configuration to use if any are available and
     # if one wasn't chosen via the "--tag" command line option.
     # Only attempt this if the compiler in the base link
@@ -5976,6 +6006,8 @@
 
 This mode accepts the following additional options:
 
+  -no-shared        never build a \`.lo' file suitable for dynamic linking
+  -no-static        never build a \`.o' file suitable for static linking
   -o OUTPUT-FILE    set the output file name to OUTPUT-FILE
   -prefer-pic       try to building PIC objects only
   -prefer-non-pic   try to building non-PIC objects only
@@ -6060,6 +6092,8 @@
   -module           build a library that can dlopened
   -no-fast-install  disable the fast-install mode
   -no-install       link a not-installable executable
+  -no-shared        do not create a shared library
+  -no-static        do not create a static library
   -no-undefined     declare that a library does not refer to external symbols
   -o OUTPUT-FILE    create OUTPUT-FILE from the specified objects
   -objectlist FILE  Use a list of object files found in FILE to specify objects
