native cross dll compile
gcj@stuellenberg.de
gcj@stuellenberg.de
Thu Sep 11 15:33:00 GMT 2003
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
More information about the Java
mailing list