This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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: Static linking with JNI-Libs possible?


>>>>> "Ranjit" == Ranjit Mathew <rmathew4lists at hotmail dot com> writes:

Ranjit> Yes, Erik has done this before. IIRC, he compiled SWT into a 
Ranjit> static library, omitting the calls to System.loadLibrary( ...)

I think this should be possible without changing the sources to omit
loadLibrary calls, by using the libltd preload feature.

You might need a custom main(), or perhaps some init function called
pretty early.

I've never tried this.  So maybe it doesn't work at all.
See "(libtool.info)Libltdl interface" -- search for lt_dlpreload.

Tom


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