This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/49138] Add /usr/include/fortran/{,gcc-<version>} to the file/module search path
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 24 May 2011 14:20:07 +0000
- Subject: [Bug fortran/49138] Add /usr/include/fortran/{,gcc-<version>} to the file/module search path
- Auto-submitted: auto-generated
- References: <bug-49138-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49138
--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2011-05-24 14:05:58 UTC ---
On Tue, 24 May 2011, burnus at gcc dot gnu.org wrote:
> The /usr/{local/,}include/fortran/ directory should be used (and searched) for
> Fortran INCLUDE / #include files.
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).
> The result of -print-mod-dir-suffix should be
> gcc-<module_version>/lib{,<qual>}
>
> The reason for "lib{,<qual>}" is to allow for architecture-defined directories;
By "lib{,<qual>}" do you mean lib/$(gcc -print-multi-os-directory) ?
(Inventing yet another system for distinguishing multilibs, when there's
already -print-multi-directory and -print-multi-os-directory, seems like a
bad idea.)