This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: compile question about dll of windows
- From: Andrew Haley <aph at redhat dot com>
- To: gnustuff at thisiscool dot com
- Cc: Anthony Green <green at redhat dot com>,Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>, java at gcc dot gnu dot org
- Date: Sat, 12 Apr 2003 09:12:30 +0100 (BST)
- Subject: Re: compile question about dll of windows
- References: <1050077614.1421.15.camel@escape><GEOMA63XA8RPZUA59354XS687YXRQB0.3e97aea6@p733>
Mohan Embar writes:
> Hi Anthony,
>
> >I'm sorry, but I haven't been following this thread very closely. I did
> >my experiments on Linux, and tested the DLL under wine. Aren't the
> >command-line limitations unique to Windows hosted tools?
>
> If I'm not mistaken, I think that even for the Linux native build, ar is
> invoked multiple times by libtool with the libgcj objects because configure has
> deemed that command-line-length limitations are exceeded.
That's right.
> In any case, I'm trying this using cross binutils on Linux. I tried
> a variant of what you did here:
>
> http://gcc.gnu.org/ml/java/2002-12/msg00287.html
>
> ..but using -Wl,--whole-archive, as Danny suggested here:
>
> http://gcc.gnu.org/ml/java/2003-04/msg00141.html
That's what I'd recommend.
> This was my command line:
>
> 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 ...where libgcj.old.a is my old-style libgcj.a.
>
> mingw32-ld choked.
With what failure?
Andrew.