Linking cc1 to external libraries

Andrew Pinski pinskia@physics.uc.edu
Thu Apr 17 13:15:00 GMT 2003


I would look the variable `LIBS' (located around line 693 on the 
mainline).

Thanks,
Andrew Pinski


On Thursday, Apr 17, 2003, at 08:45 US/Eastern, Alexandre Courbot wrote:

> Hi everybody,
>
> I wandered around the doc and the Makefiles, and have found no way to 
> add
> additional libraries to link to for cc1. I need the compiler (and only 
> the
> compiler) to link to one library that is installed on the system 
> (using -L
> and -l options), but at first sight it doesn't seem possible. As a 
> workaround
> I've included my library as a part of the backend, but that quite... 
> gruiiik.
>
> I know this is not something really common - but do someone know of a 
> way to
> require additional linking when building cc1? That could be useful, 
> and if it
> isn't possible yet it wouldn't require much more than an additional 
> Makefile
> variable that the backend programmer could override...
>
> Alex.
>
>
>



More information about the Gcc mailing list