On Sun, Sep 12, 2004 at 09:30:53PM +0200, Jens Thiele wrote:
> I guess the default compilation configuration includes some stuff not
> really required and it is possible to reduce the size (especially of
> libxpcom) ?

Yes, you can disable some unused stuff, try:
--disable-jsloader (unless you want to write components using
javascript?)

--disable-debug --enable-optimize, if you don't already do that;
although current versions do that by default.

--disable-logging probably saves a bit of codesize.

--enable-strip

--disable-static-component-loader I'm not quite sure what this does, but
I don't think normal builds need it


With the above options, I get:
> du -Lsh libpl* libnspr4.so libxpcom.so nsTestSample
16K     libplc4.so
12K     libplds4.so
200K    libnspr4.so
797K    libxpcom.so
20K     nsTestSample

Looks like ~1 MB.

(Tested with "gcc version 3.3.3 (SuSE Linux)", CVS Trunk as of
yesterday)

-- 
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to