This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
RE: There's something i'm confused about.
> gcj -c someclass.java and it produces a .o
>
> file reports its ELF 32 relocatable unstripped.
>
> ar qv myarchivename.a someclass.o
>
> and it bitches about unknown object format. the archive is a non
> existing file.
I ran a test on my system:
<output>
$ gcj test.java -o tester -c
$ ar qv test.a tester
a - tester
</output>
ar reports:
<output>
ar: supported targets: elf32-i386 a.out-i386-linux efi-app-ia32
elf64-x86-64 elf64-little elf64-big elf32-little elf32-big srec
symbolsrec tekhex binary ihex trad-core
</output>
> information on these options in the man pages. Does this option work
> for jar files?
>
Works for me:
$gcj -Xlinker --start-group test.jar -Xlinker --end-group
--main=test