[RFC] Fortran search path for intrinsic includes and modules

Steve Kargl sgk@troutmask.apl.washington.edu
Thu Nov 24 17:36:00 GMT 2005


On Thu, Nov 24, 2005 at 12:05:31PM -0500, Jakub Jelinek wrote:
> On Thu, Nov 24, 2005 at 04:42:30PM +0100, Fran?ois-Xavier Coudert wrote:
> > > Go with ${PREFIX}/finclude unless pbrook objects.
> > 
> > I'm not sure this is indeed a good thing in the case where
> > PREFIX=/usr. Distros will probably be reluctant to have a new
> > subdirectory in /usr that contains only a few files. I'd really rather
> > see it go into the ${PREFIX}/lib/... Plus, we have to consider whether
> > these files are target-dependent or not. If they are, then they should
> > go somewhere labelled with the target triplet (like object files go
> > into /usr/lib/gcc/${target-triplet}/${version}/), shouldn't they?
> 
> The C preprocessor searches for C++ files:
>  /usr/lib/gcc/x86_64-redhat-linux/4.0.1/../../../../include/c++/4.0.1

I could live with ${PREFIX}/include/fortran/... for the 4 files
that you need to install.  We can also stick the other *.mod, which
we'll eventually have, in this location.  Any *.o or *.a files
that may arise can be placed where libgcc.a lives.

-- 
Steve



More information about the Fortran mailing list