This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: linking a .so with libgcj.a ?
- From: Michael Koch <konqueror at gmx dot de>
- To: java at gcc dot gnu dot org
- Cc: Andi Vajda <andi at osafoundation dot org>
- Date: Wed, 15 Dec 2004 08:10:45 +0100
- Subject: Re: linking a .so with libgcj.a ?
- References: <Pine.OSX.4.61.0412142254170.6313@zoe.ovaltofu.org>
Am Mittwoch, 15. Dezember 2004 08:02 schrieb Andi Vajda:
> On Linux (gentoo 2.6.9), using gcj 3.4.3, built from sources, I'm
> trying to create a .so (a python extension) that is statically
> linked with libgcj.a instead of dynamically with libgcj.so.5.
>
> I can link it with libgcj.so without a problem, it works fine.
> If I link it with libgcj.a, it links, creates a .so that crashes
> with a segfault as soon as it is loaded into the process.
> On windows, with Mingw 3.4.2, this works (and is the default, there
> apparently isn't even a libgcj.dll anyway).
>
> Linking my .so statically with libgcj.a would reduce the size of
> the libs I have to ship by a large amount until libgcj.so.5 is
> installed, standard, on Linux distributions. My .so dynamically
> linked is 2Mb, statically linked 15Mb, libgcj.so.5.0.0 is 41Mb.
Stripped libgcj.so.5.0.0 is 11519264 bytes here.
> Can I do that ? How ?
Can you start our app in GDB and give us a backtrace ?
Michael
--
Homepage: http://www.worldforge.org/