[Prev][Next][Index][Thread]

Re: kaffe /lib



Umar Saif wrote:
> Is there anything in OSkit that would preclude dynamic linking ?

You'll need to include the OSKit's dynamic loader, rtld.  I'm not sure
if it will work with Kaffe, though.  Leigh might know if there's any
inherent reason it won't work.

> Second, if I write some (java +) native code, could I make that
> dynamic linkable while kaffe is configured with --with-staticvm
> --with-staticlib?

I don't think that would work (even without the OSKit), as I think
--with-staticlib drops all the dynamic loading abilities of Kaffe.
Again, I'm not sure about this, so it might work.  Probably easy to
test on regular Kaffe....

We statically link in our extensions to Kaffe when building on the
OSKit.  Its a bit awkward to get the image built, but it works (and we 
hide all the goo in a makefile).

> if yes, would I need to place that in /lib in the image or is there
> an equivalent of LD_LIBRARYPATH that I could set without having to
> reconfigure kaffe ?

This depends on the particulars of the rtld library, look at its
documentation for where it looks for libraries at run-time.

-Pat

----- ----- ---- ---  ---  --   -    -      -         -               -
Pat Tullmann                                       tullmann@cs.utah.edu
	  This signature witticism intentionally left blank.

Follow-Ups: References: