This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: AWT with static gcj
>>>>> "Marco" == Marco Trudel <mtrudel@gmx.ch> writes:
>> In a --disable-shared build, there is no libgtkpeer.so that can be
>> loaded dynamically.
Marco> So, libgtkpeer.a is for the shared GCJ and libgtkpeer.so for the
Marco> static? Why isn't libgtkpeer.so built then?
No... libgtkpeer.a is a static library. libgtkpeer.so is a dynamic
library. In a --disable-shared build, the .so is simply not build.
However, System.loadLibrary can only load dynamic libraries; static
libraries simply can't be loaded at runtime.
Tom