[Bug fortran/35707] Search /usr/local/include and /usr/include for .mod files
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Dec 8 11:35:00 GMT 2008
------- 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
More information about the Gcc-bugs
mailing list