On Wed, Nov 16, 2016 at 04:58:52PM +0200, Martin-Éric Racine wrote: > Fair enough. I'm wondering if the enclosed patch would accomplish the > same thing. I mean, the goal always is to set CC for the target host, > right?
>From a cross builder's perspective, yes. From a clang user's perspective, no. The reason of using if "ifeq ($(origin CC),default)" check is to allow substituting gcc for e.g. clang while still getting the default right. TL;DR: Your patch fixes the reported bug. Helmut