RFC: An option to link against static gcc libraries
Jakub Jelinek
jakub@redhat.com
Fri Dec 30 19:10:00 GMT 2005
On Fri, Dec 30, 2005 at 10:58:16AM -0800, H. J. Lu wrote:
> > One, this will not work at all libobjc or libgcj since they
> > require lookups at runtime.
>
> Are you saying "gcc -static" doesn't work with libobjc and libgcj?
It certainly doesn't work with libgcj (well, you can link in libgcj.a,
but it will almost certainly never work right, for some programs
--whole-archive helps a bit, but for most programs doesn't).
That's why Fedora stopped including any Java .a libraries many
months ago.
Jakub
More information about the Gcc
mailing list