NewBie: ld linker problem

Bryce McKinlay bryce@albatross.co.nz
Sat Apr 1 00:00:00 GMT 2000


Jeff Sturm wrote:
> > I think the question indio was trying to ask here was really:
> >
> > "How do I statically link libgcj (and the libgcjgc, etc) into my application?"
> >
> > gcj will statically link if you actually delete the .so files from your library
> > path. But there must be a better way than that. If someone wants to tell me the
> > answer or add it to the FAQ I'd be very happy too.
>> what about "gcj -static"?

Unfortunatly, this causes gcj to statically link everything (even glibc), which
results in an unneccessarily large binary. What I'd like is to be able to selectivly
static link only libgcj's libraries, while keeping libc, libstdc++, and anything
else that is standard on Linux distributions dynamic in order to keep the file size
down.
regards
 [ bryce ]


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /