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: libgcj_bc.so not embedded


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
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





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