Linking cc1 to external libraries

Alexandre Courbot Alexandre.Courbot@lifl.fr
Thu Apr 17 16:39:00 GMT 2003


> > 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.



More information about the Gcc mailing list