This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
ld issues
- From: Andrew Haley <aph at redhat 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 18:16:43 +0100
- Subject: ld issues
- References: <3F0C4CDF.4050500@netfuel.com>
Steve Pribyl writes:
> 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
>
> The first one appears to not load the classes correctly when loaded by gcj.
Did you try using "gcj -v" to see what command was passed to ld?
Andrew.