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

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.





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