1999-04-30 Tom Tromey <tromey@cygnus.com>
+ * automake.in (finish_languages): Always use `-o $@' with
+ libtool. Define ltcompile and ltlink at outermost scope in
+ function.
+ * libtool.am (.c.lo): Removed.
+
* automake.in (finish_languages): Put `.' before extension in
suffix list, `.obj' rule, and `.lo' rule. Look at `-flags', not
`-flag'. From Pavel Roskin.
+* Scan configure.in using the same trick that autoheader uses.
+ This will be much more reliable.
+
* Test subdir-objects option with yacc, lex, ansi2knr
Our locking scheme won't prevent a parallel make from losing
if there are two `bar.o' files and the timing is just right
# Call finish function for each language that was used.
sub finish_languages
{
+ local ($ltcompile, $ltlink) = &libtool_compiler;
+
local ($ext, $name, $lang, %done);
local ($non_c) = 1;
foreach $ext (sort keys %extension_seen)
. "\t\$(LT"
. $language_map{$lang . '-compiler-name'}
. ") "
- . $outarg
+ . $language_map{$lang . '-output-arg'}
+ # We can always use -c -o with libtool.
+ . ($language_map{$lang . '-flags'} eq 'CFLAGS'
+ ? ' -o $@' : '')
. " \$<\n")
if $seen_libtool;
}
# it.
if (! $non_c || scalar keys %suffix_rules > 0)
{
- local ($ltcompile, $ltlink) = &libtool_compiler;
-
if (! defined $done{'c'})
{
&define_configure_variable ($language_map{'c-flags'});
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
-NOTDEPEND.c.lo:
-## Note that we explicitly set the libtool mode. This avoids any lossage
-## if the program doesn't have a name that libtool expects.
-## Note also that `-c -o' can always be used with libtool'.
-NOTDEPEND $(LIBTOOL) --mode=compile $(COMPILE) -c -o $@ $<
-
mostlyclean-libtool:
-rm -f *.lo
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
-NOTDEPEND.c.lo:
-## Note that we explicitly set the libtool mode. This avoids any lossage
-## if the program doesn't have a name that libtool expects.
-## Note also that `-c -o' can always be used with libtool'.
-NOTDEPEND $(LIBTOOL) --mode=compile $(COMPILE) -c -o $@ $<
-
mostlyclean-libtool:
-rm -f *.lo