This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug java/32619] -static-libgcj includes entire gnu classpath (>30MB executable from 95byte source)



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


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