This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/32619] -static-libgcj includes entire gnu classpath (>30MB executable from 95byte source)
- From: "woody77 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jul 2007 02:40:20 -0000
- Subject: [Bug java/32619] -static-libgcj includes entire gnu classpath (>30MB executable from 95byte source)
- References: <bug-32619-14796@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from woody77 at gmail dot com 2007-07-04 02:40 -------
Same behavior with the "old style" method:
> gcj -c Foo.java
> gcj --main=Foo -save-temps Foo.java
> gcc -o Foo2 Foo.o Foomain.i -shared-libgcc -Wl,-non_shared -lgcj -Wl,-call_shared -lsupc++ -Wl,--as-needed -lz -lgcc_s -lpthread -lc -lm -ldl -lrt -Wl,--no-as-needed
Also yields a 35MB binary.
Stripping debug symbols drops it to 18MB, full stripping drops it to 11MB.
--
woody77 at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |woody77 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32619