This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Static linking of C-Libs with CNI possible?
- From: Clemens Eisserer <Linuxhippy at web dot de>
- To: java at gcc dot gnu dot org
- Date: Fri, 14 Feb 2003 16:19:37 +0100
- Subject: Static linking of C-Libs with CNI possible?
- Organization: http://freemail.web.de/
Hi there!
1.) With JNI it isnt possible to put all needed libraries into the executable, because JNI loads them with dlopen().
But is it possble with CNI to link all C-Libs statically into the java-binary and remove all unneeded symbols with strip?
2.) JNI didnt work for me, when I linked libgcj statically against my binary, the program crashed with a segfault (I had this problem with several different jni-libraries)
Does this work with CNI?
Mfg Linuxhippy
______________________________________________________________________________
E-Mails verschicken und auf Antwort warten? Mit der Kurier-SMS kann
das nicht mehr passieren - http://freemail.web.de/features/?mc=021174