Created attachment 379640 [details, diff] Export CC/CXX/CPP/AR/LDSHARED/LDCXXSHARED unconditionally I've added the necessary bits to distutils-r1 but ebuilds that spawn distutils implicitly (e.g. python-single-r1 w/ autotools or so on) may suffer the same issue. How many are them? Do we want to require them to fix the issue implicitly, or just export the vars unconditionally in the eclasses? I'm attaching a patch for the latter. We can scrap different solutions out of it.
So far we've been focusing on either not making stuff call distutils implicitly, or expecting upstream to 'do it right' when they do. I suppose this makes no sense then.