This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: automake: compiling assembly files is *broken* in 1.5 (fwd)
- To: "C. Scott Ananian" <cananian at lesser-magoo dot lcs dot mit dot edu>
- Subject: Re: automake: compiling assembly files is *broken* in 1.5 (fwd)
- From: Alexandre Duret-Lutz <duret_g at lrde dot epita dot fr>
- Date: Sat, 3 Nov 2001 14:39:06 +0100
- Cc: automake at gnu dot org
- List-Id: Discussion list for automake <automake.gnu.org>
- References: <Pine.GSO.4.10.10110181725010.18581-100000@catfish.lcs.mit.edu>
On Thu, Oct 18, 2001 at 05:25:27PM -0400, C. Scott Ananian wrote:
[...]
> ASCOMPILE = $(AS) $(AM_ASFLAGS) $(ASFLAGS)
> LTASCOMPILE = $(LIBTOOL) --mode=compile $(AS) $(AM_ASFLAGS) $(ASFLAGS)
> [...]
> .S.o:
> $(ASCOMPILE) -c `test -f $< || echo '$(srcdir)/'`$<
>
> .S.obj:
> $(ASCOMPILE) -c `cygpath -w $<`
>
> .S.lo:
> $(LTASCOMPILE) -c -o $@ `test -f $< || echo '$(srcdir)/'`$<
> ------
>
> The '-c' flag in each of these three rules is incorrect, and causes
> make to fail:
> make[2]: Entering directory `/home/cananian/Harpoon/Runtime/arch/ix86'
> /bin/sh ../../libtool --mode=compile as -c -o header.lo `test -f header.S || echo './'`header.S
> as -c header.S -o header.o
> as: unrecognized option `-c'
> make[2]: *** [header.lo] Error 1
Where is AS defined? Did you call AM_PROG_AS from your configure.ac?
AM_PROG_AS sets AS to $(CC), it's probably why there is a '-c' in
these rules (although I agree it doesn't make it easy to use a different
value for AS).