This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]