This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Linking cc1 to external libraries


> > I would look the variable `LIBS' (located around line 693 on the
> > mainline).
>
> Ah, actually I don't think it would work. The backend's Makefile fragments
> are outputted before LIBS is initially set, which results in an override of
> any value you would have put in it.

Woops. And I forgot that when linking cc1, -lstdc++ must obviously be 
specified, otherwise there will obviously be loads of undefined references. 
So in any way, I must be able to specify additional libraries for cc1. Since 
I'm manually modifying the generated Makefile for now, I'm open to any 
suggestion! :)

Alex.


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