libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

remove deprecated stuff from ltmain.in


From: Peter O'Gorman
Subject: remove deprecated stuff from ltmain.in
Date: Sun, 28 Sep 2003 00:20:03 +0900
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030916 Thunderbird/0.3a

This patch removes the inferring of the mode and the -allow-undefined
flag (well, it makes them errors).

Is it time? Okay to apply?

Peter
--
* Peter O'Gorman - http://www.pogma.com/ *

Index: ChangeLog
2003-09-27  Peter O'Gorman <address@hidden>

        * ltmain.in: Remove deprecated -allow-undefined and inferring the
        mode.

from  Alfred M. Szmidt  <address@hidden>
Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/ltmain.in,v
retrieving revision 1.343
diff -u -r1.343 ltmain.in
--- ltmain.in 13 Sep 2003 12:02:04 -0000 1.343
+++ ltmain.in 27 Sep 2003 15:12:28 -0000
@@ -309,46 +309,10 @@
 
 if test -z "$show_help"; then
 
-  # Infer the operation mode.
+  # Don't infer the operation mode.
   if test -z "$mode"; then
-    $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
-    $echo "*** Future versions of Libtool will require -mode=MODE be 
specified." 1>&2
-    case $nonopt in
-    *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
-      mode=link
-      for arg
-      do
-       case $arg in
-       -c)
-          mode=compile
-          break
-          ;;
-       esac
-      done
-      ;;
-    *db | *dbx | *strace | *truss)
-      mode=execute
-      ;;
-    *install*|cp|mv)
-      mode=install
-      ;;
-    *rm)
-      mode=uninstall
-      ;;
-    *)
-      # If we have no mode, but dlfiles were specified, then do execute mode.
-      test -n "$execute_dlfiles" && mode=execute
-
-      # Just use the default operation mode.
-      if test -z "$mode"; then
-       if test -n "$nonopt"; then
-         $echo "$modename: warning: cannot infer operation mode from 
\`$nonopt'" 1>&2
-       else
-         $echo "$modename: warning: cannot infer operation mode without 
MODE-ARGS" 1>&2
-       fi
-      fi
-      ;;
-    esac
+    $echo "*** $modename: -mode=MODE must be specified." 1>&2
+    exit 1
   fi
 
   # Only execute mode is allowed to have -dlopen flags.
@@ -1183,8 +1147,8 @@
 
       -allow-undefined)
        # FIXME: remove this flag sometime in the future.
-       $echo "$modename: \`-allow-undefined' is deprecated because it is the 
default" 1>&2
-       continue
+       $echo "$modename: \`-allow-undefined' must not be specified because it 
is the default" 1>&2
+       exit 1
        ;;
 
       -avoid-version)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]