This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: How to produce shared libraries with gcj?
- From: Tom Tromey <tromey at redhat dot com>
- To: everton at lab dot ipaccess dot diveo dot net dot br
- Cc: java at gcc dot gnu dot org
- Date: 21 Oct 2003 15:47:18 -0600
- Subject: Re: How to produce shared libraries with gcj?
- References: <20031021213522.GA599@netflow.ipaccess.diveo.net.br>
- Reply-to: tromey at redhat dot com
>>>>> "Everton" == Everton da Silva Marques <everton@lab.ipaccess.diveo.net.br> writes:
Everton> Is it possible to use gcj to generate a shared library?
Everton> $ gcj -o dist/lib/libservlet.so obj/servlet/*.o
You need -shared. And build each .o file with -fPIC.
Tom