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: linux audio software using gcj&swt!


On Thu, 2003-10-23 at 05:05, Norbert Frese wrote:
> Display is inside swt.jar and not libgcj. It tries to load the native part of swt 
> swtXXX.so, which is ok. So this is not a libgcj problem (except that the mistake
> of trying to load a shared library is not reported properly).

My solution was to hack SWT to _not_ load the native library (just look
for the System.loadLibrary call), and link the native libs into the
static executable with the following:

-Wl,--whole-archive,libswt-gtk-2135.a,libswt-pi-gtk-2135.a,--no-whole-archive

libgcj, and all the the SWT/JFace libs were also linked statically, but
we used dynamic versions of glibc and all of the gtk+ libs.  

AG

-- 
Anthony Green <green@redhat.com>
Red Hat, Inc.


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