This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: re-expand CXX_FOR_TARGET after libstdc++-v3 is configured

On 11/17/2010 07:55 AM, Alexandre Oliva wrote:
On Nov 14, 2010, Paolo Bonzini<> wrote:

On 11/13/2010 08:19 PM, Alexandre Oliva wrote:
The problem is that the rule for âallâ calls a sub-make, passing it a
CXX_FOR_TARGET evaluated *before* libstdc++-v3 is configured, so the
solution is to delay the expansion of CXX_FOR_TARGET.

Maybe the problem is this:

# We leave this in just in case, but it is not needed anymore.

We could try removing both of these and see what happens...

That won't be enough. We explicitly pass down TARGET_FLAGS_TO_PASS (including CXX_FOR_TARGET) when recursing for all-host all-target. And it's not like it would be right to refrain from overriding a number of variables, CXX_FOR_TARGET included: we want to use different compilers and options for different stages, rather than taking whatever overrider the user might have passed for stage1 or so.

I see.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]