http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54725
Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-09-28 14:16:37 UTC --- Untested draft patch. As I don't build cross compilers, I would be happy if someone could confirm that it works. --- a/gcc/fortran/cpp.c +++ b/gcc/fortran/cpp.c @@ -269,3 +269,3 @@ gfc_cpp_init_options (unsigned int decoded_options_count, gfc_cpp_option.prefix = NULL; - gfc_cpp_option.sysroot = NULL; + gfc_cpp_option.sysroot = TARGET_SYSTEM_ROOT;