autoconf-archive-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Paolo Bonzini
Subject: Re: AX_PROG_CC_FOR_BUILD should use CFLAGS, etc. in non-crossbuilds
Date: Sat, 11 Jan 2014 18:34:54 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130923 Thunderbird/17.0.9

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...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]