]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: recognize "CC" as default --tag argument to resolve
authorMichael Matz <matzmich@cs.tu-berlin.de>
Thu, 12 Apr 2001 02:28:10 +0000 (02:28 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Thu, 12 Apr 2001 02:28:10 +0000 (02:28 +0000)
also ambiguities with that language.

ChangeLog
ltmain.in

index f45d4093f6d94ca4240c09f79a8c9209ed3f3184..0085a9e180d820a4d5784efda392dd0aaa570f34 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-04-11  Michael Matz  <matzmich@cs.tu-berlin.de>
+
+       * ltmain.in: recognize "CC" as default --tag argument to resolve
+       also ambiguities with that language.
+
 2001-04-11  Alexandre Oliva  <aoliva@redhat.com>
 
        * ltmain.in: Mark duplicate libraries appearing in predeps and
index 47db3501cae069b3d8480d31756cd9d1c928eb7d..e379224ebdd67ecbb1233aeb52d73fdaa4158ee1 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -136,13 +136,21 @@ do
         ;;
       esac
 
-      if grep "^### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$0" > /dev/null; then
-        taglist="$taglist $tagname"
-       # Evaluate the configuration.
-       eval "`sed -n -e '/^### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $0`"
-      else
-       echo "$progname: ignoring unknown tag $tagname" 1>&2
-      fi
+      case $tagname in
+      CC)
+       # Don't test for the "default" C tag, as we know, it's there, but
+       # not specially marked.
+       ;;
+      *)
+        if grep "^### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$0" > /dev/null; then
+          taglist="$taglist $tagname"
+         # Evaluate the configuration.
+         eval "`sed -n -e '/^### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $0`"
+        else
+         echo "$progname: ignoring unknown tag $tagname" 1>&2
+        fi
+        ;;
+      esac
       ;;
     *)
       eval "$prev=\$arg"