Converting a JAR into a gcj-statically-linked SO

David Daney ddaney@avtrex.com
Mon Jan 7 18:04:00 GMT 2008


Andrew Haley wrote:
> Matthijs van de Water writes:
> > On Jan 7, 2008 1:08 PM, Andrew Haley <aph@redhat.com> wrote:
> > > Tell us what messages *exactly*.
> > Ok, see attachment.
> > 
> > > This is tricky to do, but not impossible. David Daney has some
> > > experience in this area.
> > >
> > > If you to produce a simple complete test case that we can try it'll be
> > > much easier to help you.
> > I cannot distribute my current test-case due to licensing of the JAR,
> > but I can create one around an open source JAR library and put it
> > somewhere.
>> That would be good.
>> > In the mean time I'd appreciate any other feedback.
> > 
> > I'd also be willing to writing up a Wiki entry on this if/once we
> > solve this, because I have a feeling this will be useful for many
> > other embedded software developers.
>> You don't seem to be linking your shared library statically against
> libgcj. You must use the -static-libgcj option.
>If you are building for ARM, you must use a recent GCC-4.3 snapshot. 
For linking with -static-libgcj, you must configure with
--disable-libgcj-bc. You will also need to apply this patch:
http://gcc.gnu.org/ml/java-patches/2007-q4/msg00100.html
Note that I have a newer version of the patch that I will be submitting,
but the current version is sufficient to get started with linking with
-static-libgcj.
David Daney


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /