ld issues

Steve Pribyl steve@netfuel.com
Wed Jul 9 17:51:00 GMT 2003


When you guys are done....

What is the proper way to create a shared library from a set of .o files 
in this case generated from *.java files.

I have a single here .o and .java to simplify.



Jeff Sturm wrote:
> On Wed, 9 Jul 2003, Andrew Haley wrote:
> 
>>Indeed.  It fascinates me how often this question comes up --
> 
> 
> Yeah, me too.
> 
> 
>>why do
>>people want to invoke the linker directly instead of having gcj do the
>>job, when the latter obviously works and the former doesn't?
> 
> 
> Habit?  Lots of legacy makefiles still use "ld -shared" (or variants like
> "ld -G"), I suspect.  There may also be older non-gcc compiler drivers
> that don't understand "-shared" or have any equivalent.
> 
> Of course that has nothing to do with gcj.
> 
> Jeff
> 
> 

-- 
Steve Pribyl
Steve AT NetFuel dot com
Computer Infrastructure Practitioner



More information about the Java mailing list