This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: ld issues
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Steve Pribyl <steve at netfuel dot com>
- Cc: gcj mail list <java at gcc dot gnu dot org>
- Date: Wed, 9 Jul 2003 13:20:24 -0400 (EDT)
- Subject: Re: ld issues
On Wed, 9 Jul 2003, Steve Pribyl wrote:
> What s the difference between
>
> $ gcj Hello.java -o Hello.o -g -fPIC -c
> $ ld -shared -o libHello.so Hello.o
>
> and
>
> $ gcj ${GCJFLAGS} v1/Hello.java -o v1/libHello.so -shared -g -fPIC
Only the latter supplies DT_NEEDED entries. Try "readelf -d libHello.so |
grep NEEDED" both ways. (The former method isn't recommended btw.)
Jeff