This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: collect2 always built?
- To: Joe Buck <jbuck at synopsys dot com>
- Subject: Re: collect2 always built?
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 03 Feb 1998 17:06:52 -0200
- Cc: jason at cygnus dot com (Jason Merrill), egcs at cygnus dot com
- References: <199802031753.JAA20121@atrus.synopsys.com>
Joe Buck writes:
>> This is not true of ELF targets; they only use collect2 for -frepo handling
>> and demangling of error messages.
> If someone has ELF and the latest GNU ld, is there ever a situation where
> they would want to use -frepo?
Once, I made a package that contained a couple of libraries, with lots
of template code. I used the .rpo files to select myself which files
should contain instantiations of templates, so that I could control
library inter-dependencies myself.
In fact, this wouldn't require collect2 at all, since I did myself the
work collect2 would have done, but I can imagine a situation where one
would distribute multiple libraries, and would like these libraries
not to contain duplicated code (so that a base library could be
upgraded without upgrading a dependent one).
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil