On Tue, Dec 03, 2013 at 11:44:46PM -0500, DJ Delorie wrote: > Alan Modra <amo...@gmail.com> writes: > > Bootstrapped etc. powerpc64-linux. OK mainline and 4.8 branch? > > > > * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for > > build != host. > > <recursive call for build != host>: Clear GMPINC. Don't bother > > saving CFLAGS. > > * configure: Regenerate. > > Ok for mainline, up to the 4.8 release manager if it's OK there but it > looks OK to me. > > Do we need to add a CXXFLAGS= to that configure too?
We basically need whatever is used to make decisions for auto-host.h (auto-build.h) contents. I hadn't found CXXFLAGS necessary, but that might just be similarity of build to host in my case or simply lack of noticing a configury error.. I guess adding CXXFLAGS might be a good idea for future-proofing. Hmm, this is opening up a whole can of worms. auto-host.h definitely contains info about assembler capabilities, so to get a "good" auto-build.h we really ought to set AS=$AS_FOR_BUILD too. Similar reasoning applies to LD= for all the HAVE_LD_* macros. Whether a "good" auto-build.h makes any difference over a "bad" one is another question. Maybe we should use most of BUILD_EXPORTS in the top level Makefile.in? What can go wrong with that? :) -- Alan Modra Australia Development Lab, IBM