http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49138
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-05-24 14:54:03 UTC --- (In reply to comment #1) > The Fortran directories should be searched within the sysroot when there > is one (the same conditions under which such C directories are searched > within the sysroot). OK, one then has the "fortran" subdirectory of: sysroot, LOCAL_INCLUDE_DIR, SYSTEM_INCLUDE_DIR and STANDARD_INCLUDE_DIR - in that order. Is the list complete and correctly ordered? > > The result of -print-mod-dir-suffix should be > > gcc-<module_version>/lib{,<qual>} > > By "lib{,<qual>}" do you mean lib/$(gcc -print-multi-os-directory) ? Yes - although using -print-multi-directory instead would be probably better as it avoid the misleading "lib". Thus, instead of, e.g., ./lib32/ and ./lib/, one has ./ and ./32/. Thanks for your comments!