This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: native cross dll compile
- From: Anthony Green <green at redhat dot com>
- To: gcj at stuellenberg dot de
- Cc: java at gcc dot gnu dot org
- Date: 11 Sep 2003 05:10:01 -0700
- Subject: Re: native cross dll compile
- Organization: Red Hat, Inc.
- References: <16224.12947.401766.654228@tower.cgs.condor.local>
On Thu, 2003-09-11 at 01:30, gcj@stuellenberg.de wrote:
> I've tried something like follows
> i386-mingw32msvc-gcj -shared -Wl,-nostdlib <library.jar> -o libfoo.dll -Wl,--out-implib,libfoo.a -Wl,--export-all-symbols
> and this results in a dll with about 15MB whereas a so on the linux
> host is only about 150KB.
I believe this is because it's linking libgcj.a statically into your
dll. Try creating a libgcj.dll first and then creating your dll. See
http://gcc.gnu.org/ml/java/2002-12/msg00287.html
On Linux, your libfoo.so is linked against libgcj.so.
BTW, how is the i386-mingw32msvc target different from i386-mingw32 ?
Thanks,
AG
--
Anthony Green <green@redhat.com>
Red Hat, Inc.