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: Converting a JAR into a gcj-statically-linked SO


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


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