This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Linking cc1 to external libraries
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Alexandre Courbot <Alexandre dot Courbot at lifl dot fr>
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>, GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Thu, 17 Apr 2003 08:51:04 -0400
- Subject: Re: Linking cc1 to external libraries
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.