[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AS and ASFLAGS
Re: AS and ASFLAGS
Fri, 1 Jun 2001 13:21:46 +0100
The query has come up on the automake list (okay, I raised it ;) ) about
how to define AS and ASFLAGS. Until recently automake has ignored this
issue, and just used CC for AS and CFLAGS for ASFLAGS. CVS automake now
uses these variables, so defining them is going to become an issue for many
people in the future, I suspect.
I've currently got, in my Makefile.am:
Which works, but it a little unsatisfactory. What would be ideal is for
autoconf to have macros to do this work: AC_PROG_AS would seem the obvious
Is there any prospect of such a macro being created in the near future.
I would supply a patch, but I have no idea how to define AS appropriately:
the definition I've used seems an inappropriate hack.
On Fri, Jun 01, 2001 at 01:03:26PM +0200, Ralf Corsepius wrote:
> Tom Tromey wrote:
> > >>>>> "Richard" == Richard Boulton <address@hidden> writes:
> > Richard> ii) Is there a recommended way to set ASFLAGS to a default
> > Richard> value. I've currently put
> > Richard> AS="$CC"
> > Richard> AC_SUBST(AS)
> > Richard> AC_SUBST(ASFLAGS)
> > This looks fine.
> Sorry for spoiling the show, but IMHO, this is basically broken:
> >From info gmake:
> Program for doing assembly; default `as'.
> Extra flags to give to the assembler (when explicitly invoked
> on a
> `.s' or `.S' file).
> IMO, this is indicates that automake's behavior is broken, or at
> least should be considered confusing, because automake's current
> rule set presume using CC assume to be using CC for compiling
> assembly (automake explicitly adds -c to the rules to compile
> In addition, though using CC for assembly probably is what most
> people will use, it adds additional complexity to passing assembler
> flags via ASFLAGS (you might need to prefix them to let cc pass them
> through). Assuming AS to be using CC will also complicate situations
> where people want to apply the assembler directly, eg. because a
> c-compiler is not available for their target.
> > These days we're trying to get new macros into
> > autoconf, not automake. So if a macro is needed for AS, it should be
> > done in autoconf.
> IMHO, we need a AC_PROG_AS or AC_PROG_CC_AS in autoconf.