compile question about dll of windows

Mohan Embar gnustuff@thisiscool.com
Fri Apr 11 07:33:00 GMT 2003


Hi Danny,

>I think I may have missed something. Is the direct invocation  of ld an attempt
>to workaround  bug with long commandline inputs being piped fom driver to ld?

Yes.

This seemed also more enticing because it seems like MingW binutils has
a higher hackability quotient than the gcj front-end. For example, I hacked
MingW ar to accept filelists and was able to bypass libtool's sorting the
object file lists and checking for duplicates.

BTW: I tried building a i686-pc-linux-gnu > i386-pc-mingw32 cross binutils and
doing this:

mingw32-gcj -shared -o libgcj.dll -Wl,--out-implib,libgcj.a -Wl,--export-all-symbols -Wl,--whole-archive libgcj.old.a -Wl,--no-whole-archive

...where libgcj.old.a is my old-style libgcj.a. mingw32-ld choked. Maybe I'll look
into this more after I crawl under the table and rock back and forth in the
fetal position for awhile. I suspect that when Anthony originally did this,
there might have been less object files and he didn't run into any command-line
limitations.

-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/






More information about the Java mailing list