On Fri, Dec 30, 2005 at 08:05:13PM +0100, Jakub Jelinek wrote: > 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. >
Then, "gcc -static-gcclibs" will work the same as "gcc -static", except for not linking against static system libraries. It is still useful for C++ and FORTRAN. H.J.