Andy Wingo <wi...@igalia.com> skribis: > One final ignorant question: there really is no way to do this without > patching GCC?
Unfortunately no. Currently, both a native compiler and a cross compiler honor CPATH, LIBRARY_PATH, etc., meaning that they cannot be used at all in a cross-compilation environment. I think we should push some more for inclusion of this functionality upstream. > And why just one CROSS_C_INCLUDE_PATH -- would it not be necessary in > theory to have such a CROSS_ARCH_... for each ARCH that we might be > interested in? I am not suggesting that you make the change now but I > want to know what the right thing is :) In theory, you’re right. That’s one of the concerns that was raised: http://gcc.gnu.org/ml/gcc/2013-02/msg00125.html I don’t think it’s a common use case though. Thanks for taking the time to review, BTW! Ludo’.