native cross dll compile

Anthony Green green@redhat.com
Thu Sep 11 12:10:00 GMT 2003


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.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /