From 0bd8c8b21ab12059297bce66e6ca7d8118458ffb Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 8 Sep 2006 21:58:35 +0000 Subject: Fix a bug when generating nmake-style makefiles. Make sure to close the output file in process_template Work around some Visual Studio command-line brain damange. --- configure.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'configure.pl') diff --git a/configure.pl b/configure.pl index b97dcde8e..7850af497 100755 --- a/configure.pl +++ b/configure.pl @@ -844,6 +844,7 @@ sub process_template { open OUT, ">$out" or croak("Couldn't write $out ($!)"); print OUT $contents; + close OUT; } ################################################## @@ -1560,8 +1561,6 @@ sub generate_makefile { 'link_to' => libs('', '.'.$$config{'static_suffix'}, @{$$config{'mod_libs'}}), }); - - process_template($$config{'makefile'}, 'Makefile', $config); } trace("mapped type '$make_style' to template '$template'"); @@ -1627,7 +1626,7 @@ sub build_cmds { die unless defined($inc) and defined($from) and defined($to); my $bld_line = - "\t\$(CXX) $inc$inc_dir $flags $from \$? $to \$@"; + "\t\$(CXX) $inc$inc_dir $flags $from\$? $to\$@"; foreach (sort keys %$files) { my $src_file = File::Spec->catfile($$files{$_}, $_); -- cgit v1.2.3