This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
native cross dll compile
- From: gcj at stuellenberg dot de
- To: java at gcc dot gnu dot org
- Date: Thu, 11 Sep 2003 10:30:11 +0200 (CEST)
- Subject: native cross dll compile
Hello,
Is is possible to cross compile library as a dll from a linux host to
a i386-mingw32msvc target?
If found quite a few posts regarding this issue, but was not able to
compile a library/dll really shared. All my libraries compiled become
unusable and the size of an static library.
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.
Christian