[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fix compilation of assembler files with subdir-objects
From: |
Andreas Schwab |
Subject: |
Fix compilation of assembler files with subdir-objects |
Date: |
Mon, 13 Sep 2004 17:36:29 +0200 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) |
There are currently two languages that don't define output_flag: c and
asm. For c there is a special case that sets output_flag to '-o' when
subdir-objects is enabled. The same handling needs to be applied when
compiling assembler files (which actually uses the same compiler),
otherwise the object files won't end up in the correct directory. I
propose to just drop the special case and let output_flag always default
to '-o' when subdir-objects is enabled.
Andreas.
2004-09-13 Andreas Schwab <address@hidden>
* automake.in (handle_languages): Always set $output_flag to '-o'
when not defined and subdir-objects is enabled.
Index: automake.in
===================================================================
RCS file: /cvs/automake/automake/automake.in,v
retrieving revision 1.1582
diff -u -p -a -u -p -a -r1.1582 automake.in
--- automake.in 10 Sep 2004 19:29:52 -0000 1.1582
+++ automake.in 13 Sep 2004 15:33:11 -0000
@@ -1166,7 +1166,6 @@ sub handle_languages
my $output_flag = $lang->output_flag || '';
$output_flag = '-o'
if (! $output_flag
- && $lang->name eq 'c'
&& option 'subdir-objects');
# Compute a possible derived extension.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- Fix compilation of assembler files with subdir-objects,
Andreas Schwab <=