This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to produce shared libraries with gcj?


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]