2018-07-31, 22:03
It turns out we might not build gcc for host after all - the "host" gcc we are building is actually the cross-compile gcc for the target. Which means we always depend on the build host gcc (5.4.0, 7.3.0, whatever) which is obviously a bit of a lottery. Adding the CXXFLAGS to force the build host gcc to compile flatbuffers will hopefully work as a quick fix, but ultimately I think I'd rather we built a host gcc which we could then use in preference to /usr/bin/gcc - that way we would avoid this gcc version lottery when building the host packages, but it is overkill to build gcc for the host as it isn't required in most cases (just use the right flags etc.), so may not happen soon (if at all).