[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
trace tag CC
From: |
Alexandre Duret-Lutz |
Subject: |
trace tag CC |
Date: |
Wed, 28 Jul 2004 21:50:37 +0200 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) |
The CC tags is preselected by libtool and _LT_LANG is not called
for it. Therefore tracing LT_SUPPORTED_TAG does not report it,
and Automake does not use it. This confused me when I wrote the
"Tags" node, as I though there were no CC tag at all.
This patch corrects both the manual and the trace output,
although I was not sure where to add the LT_SUPPORTED_TAG([CC])
call.
2004-07-28 Alexandre Duret-Lutz <address@hidden>
* doc/libtool.texi (Tags): Document CC.
* m4/libtool.m4 (_LT_SETUP): Register CC as supported tag so that
Automake uses it.
Index: doc/libtool.texi
===================================================================
RCS file: /cvsroot/libtool/libtool/doc/libtool.texi,v
retrieving revision 1.165
diff -u -r1.165 libtool.texi
--- doc/libtool.texi 15 Jul 2004 12:37:13 -0000 1.165
+++ doc/libtool.texi 28 Jul 2004 19:43:59 -0000
@@ -2243,7 +2243,7 @@
@multitable {Windows Resource} {Tag name}
@item Language name @tab Tag name
address@hidden C @tab
address@hidden C @tab CC
@item C++ @tab CXX
@item Java @tab GCJ
@item Fortran 77 @tab F77
@@ -2258,8 +2258,8 @@
@address@hidden option (@pxref{Invoking libtool}). It is a good
idea to do so in @file{Makefile} rules, because that will allow users to
substitute the compiler without relying on @command{libtool} inference
-heuristics. Note that there is no tag for @code{C} because that is
-the default configuration.
+heuristics. When no tag is specified, @command{libtool} will default
+to @code{CC}; this tag always exists.
Finally, the set of tags available in a particular project can be
retrieved by tracing for the @code{LT_SUPPORTED_TAG} macro (@pxref{Trace
Index: m4/libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/m4/libtool.m4,v
retrieving revision 1.81
diff -u -r1.81 libtool.m4
--- m4/libtool.m4 28 Jul 2004 14:57:28 -0000 1.81
+++ m4/libtool.m4 28 Jul 2004 19:44:01 -0000
@@ -191,6 +191,7 @@
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
# Use C for the default configuration in the libtool script
+LT_SUPPORTED_TAG([CC])
_LT_LANG_C_CONFIG
_LT_LANG_DEFAULT_CONFIG
_LT_CONFIG_COMMANDS
--
Alexandre Duret-Lutz
- trace tag CC,
Alexandre Duret-Lutz <=