This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
libgcj.a instead of libgcj.so + dependencies on linux
- From: "Erik Poupaert" <erik dot poupaert at chello dot be>
- To: <java at gcc dot gnu dot org>
- Date: Sat, 19 Apr 2003 01:06:09 +0200
- Subject: libgcj.a instead of libgcj.so + dependencies on linux
The minGW version links libgcj.a statically, while the linux version of gcj
creates a dependency on libgcj.so and its subsequent dependencies.
At first glance I wanted to add the "-static" method in order to get the
same behaviour on linux as on windows. There is one snag, however. If it's
an swt application, it will also attempt to link the gtk dependencies
statically. I would want to avoid linking gtk statically, because doing so
is complicated.
Is there a way to get the same behaviour on linux as on windows (linking
against libgcj.a instead of libgcj.so)?