This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [PATCH] Build libgcj, libgcj-tools, and libffi as shared libraries on Windows
- From: Andrew Haley <aph at redhat dot com>
- To: "Aaron W. LaFramboise" <aaronavay62 at aaronwl dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, java-patches at gcc dot gnu dot org
- Date: Sun, 24 Aug 2008 12:06:23 +0100
- Subject: Re: [PATCH] Build libgcj, libgcj-tools, and libffi as shared libraries on Windows
- References: <48B0BD19.8080300@aaronwl.com>
Aaron W. LaFramboise wrote:
> This patch builds libgcj, libgcj-tools, and libffi as DLLs on Windows.
>
> Autoimport is used in the final link of some of the tools. This is OK
> for now, but suboptimal in the long run. I'll address this later by
> adding the proper decorations.
>
> This massively reduces the size of a full GCC installation on Windows.
> Most of the tools go from being about 44 MB to about 20 KB.
Quite right too.
> The DLL itself is pretty massive, weighing in at 70 MB (29 MB stripped),
> and a massive 82217 exports. In the future, it might possible to
> improve this situation by linking by ordinal.
Maybe you don't use libgcj.ver or some equivalent? I have no idea
if you're even using GNU ld.
Andrew.