This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/35707] Search /usr/local/include and /usr/include for .mod files
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Dec 2008 11:33:45 -0000
- Subject: [Bug fortran/35707] Search /usr/local/include and /usr/include for .mod files
- References: <bug-35707-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from burnus at gcc dot gnu dot org 2008-12-08 11:33 -------
(In reply to comment #6)
> To add the default paths defined in gcc/cppdefault.c (cpp_include_defaults) to
> the module/INCLUDE search path, one could clone gcc/incpath.c
> (add_standard_paths) and call gfc_add_include_path() instead of add_path().
>
> Tobias, do we still need/want this?
Good question. FX and Joe don't like the idea, but Fortran files (".h"/".inc"
and ".mod" files one can find in /usr/include in some Linux distributions.
openSUSE has a .mod file and *.inc for NetCDF in /usr/include. The place for
the .mod looks wrong, but for .inc?
A semi-proper place for .mod files is:
/usr/lib64/gcc/x86_64-suse-linux/4.4/finclude/
(Semi because finclude does not distinguish between e.g. 32bit and 64bit.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35707