libgcj_bc.so not embedded
Marco Trudel
mtrudel@gmx.ch
Sun Apr 8 09:30:00 GMT 2007
David Daney wrote:
> Mohsen Saboorian wrote:
>> I have compiled all jar dependencies into .o files using
>> -findirect-dispatch option. My last command line to make all-in-one
>> executable file looks like this:
>> $ gcj-4.1 -omyApp.executable -static-libgcj -O3 --main=my.main.Class
>> -findirect-dispatch -fjni jar1.o jar2.o jar3.o
>>
>
> -static-libgcj has never been tested with -findirect-dispatch or -fjni.
> If you are statically linking there should be no need for
> -findirect-dispatch as you will never be upgrading the runtime (or
> anything else for that matter).
>
>
>> as I addded -static-libgcj, it gives me:
>> /usr/bin/ld: cannot find -lgcj_bc
Could be related with this thread:
http://gcc.gnu.org/ml/java/2007-03/msg00047.html
Maybe removing the "-lgcj_bc" parts from libgcj.spec will do the trick...
Marco
>> collect2: ld return ed 1 exit status
>>
>> I believe I'm doing something wrong and this simple usage should not
>> be a bug.
>>
>> Thanks.
>>
>> On 4/7/07, David Daney <ddaney@avtrex.com> wrote:
>>> Mohsen Saboorian wrote:
>>> > When using "-static-libgcj", I'm getting this error:
>>> > /usr/bin/ld: cannot find -lgcj_bc
>>> >
>>> Please post your complete command line or file a complete bug report.
>>> If there is a problem in GCC we can fix it.
>>>
>>> David Daney
>>>
>>>
>
>
More information about the Java
mailing list