[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem with gfortran and pkg-config

Hendrik Sattler writes ("Re: Problem with gfortran and pkg-config"):
> Am Donnerstag 29 Juli 2010, 19:23:40 schrieb Tollef Fog Heen:
> > The reason for stripping -I<any standard include path> is so you can
> > have in-tree include files that get included correctly even if their
> > names overlap the files in /usr/include.
> This is not the case with current gcc. From "man gcc":
> "Directories named by -I are searched before the standard system
> include directories.  If the directory dir is a standard system include 
> directory, the option is ignored to ensure that the default search order for
> system directories and the special treatment of system headers are not 
> defeated."

Boggle.  As if our build systems weren't complicated enough without
the compiler and the makefiles playing Core Wars !

I guess we'll soon enough see -I/./usr/include ...


Reply to: