Re: AX_PROG_CC_FOR_BUILD should use CFLAGS, etc. in non-crossbuilds

Paolo Bonzini <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.archive-maintainers
Message-ID <[email protected]>
Il 11/01/2014 18:05, Ryan Lortie ha scritto:
>> >  But you can do: initialise the variables from their host
>> > counterparts in the non-cross-compiling case, but not in the case that
>> > they are already explicitly set.
>> > 
>> > What do you think?
> I think that this would be OK except that I don't understand why anyone
> would possibly want to change the CFLAGS_FOR_BUILD and not the CFLAGS in
> the case that they are not cross-compiling.  That seems a bit strange to
> me.

Yeah it is, but you never know.  The common case is that when not
cross-compiling the builder doesn't even notice that CFLAGS_FOR_BUILD
exists; on the other hand if for whatever reason they specify it even
when not cross-compiling, honoring it minimizes surprise.

Paolo

> I guess I could imagine a case where they care that the produced
> (installed) executables are made with a particular level of optimisation
> or debugging and that the tools that are only used during buildtime are
> made with different levels...
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.