This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: latest snapshot won't find C++ header files


On Mon, 12 October 1998, 10:29:26, rearnsha@arm.com wrote:

 > 
 > manfred@s-direktnet.de said:
 > >  2. The second problem arises from the fact, that, provided you're
 > > building
 > >     a *new* snapshot, $(libsubdir) usually *does not already* exist!
 > > If
 > >     now $(libsubdir)/$(unlibsubdir) with unlibsubdir=../../.. is used
 > > to
 > >     locate "as", "ld", "include" (did I miss anything?), the just
 > > built
 > >     "xgcc" will simply fail and revert to its "second" default, e.g.
 > > using
 > >     "/usr/ccs/bin/as" on HP-UX or Solaris.  Creating an empty
 > > $(libsubdir)
 > >     before "make bootstrap" would cure this, but simply adding
 > >     "-B${exec_prefix}/${target}/bin" to the appropriate ..._CFLAGS
 > > might
 > >     be the better solution (again, this is, what Alexandre suggested
 > > in his
 > >     email). 
 > 
 > It might solve the binaries problem, but I can't see how this would solve 
 > the includes problem.

The "-B..."  wasn't intended to  solve the includes  problem; that's a
different problem,  which  has (at  least  partially) been  solved  by
Alexandre's latest patch.

 > Also, I wasn't aware that -B options were additive 
 > (ie you could have more than one): if this is the case (that they aren't) 
 > then the -B must be set to the current build directory during the compile 
 > process, so that xgcc can find the correct cc1.

They are additive.

 > 
 > Another solution might be to have code to translate .../foo/../b into 
 > .../b if the initial lookup fails -- this code might also be problematic 
 > because it won't respect symlinks.
 > 
 > Richard.
 > 

manfred


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]