About static linking with gcj

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,
I'm trying to make  static linking in order to obtain a java executable 
to use on a device with few hardisk space.
I created a simple java that made 
only a "System.out.println" and after c
ompiling I obtained am executable file 
of 29 MB. Is it possibile to 
shrink the size of executable? Am I doing 
something worng?
This is the command that I'm using.

 gcc -o Foo Foo.o Foomain.
i -shared-libgcc -Wl,-non_shared -lgcj -Wl,-call_shared -lsupc++ -Wl,--as-
needed -lz -lgcc_s -lpthread -lc -lm -ldl -Wl,--no-as-needed


Thanks.
   

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux