Thanks for your reply. I have built Mozilla on a RedHat linux platform using a mozconfig configuration file which has the following contents:
ac_add_options --with-system-nspr
ac_add_options --disable-mailnews
ac_add_options --disable-ldap
ac_add_options --disable-freetype2
ac_add_options --disable-postscript
ac_add_options --disable-xprint
ac_add_options --disable-jsd
ac_add_options --disable-accessibility
ac_add_options --disable-composer
ac_add_options --disable-mathml
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --enable-optimize="-O3 -march=k6 -mcpu=k6"
ac_add_options --disable-dtd-debug
ac_add_options --disable-logging
ac_add_options --enable-strip
Does this configuration look ok to you? I wasn't sure about the 'with-system-nspr' option, could you give me a few details on how this should be used. Are there any other options that you recommend I should use?
After the build finished I created a package with 'gmake -C xpinstall/packager'. This created a 9.7Mb tar.gz file which extracts to ~24Mb.
Next, I ran a make within mozilla/embedding/config. This created a directory (mozilla/dist/Embed) which was ~15.6Mb in size. As you can see, I am still way off the 8.9Mb that you have achieved. Do you have any suggestions as to how I can bring this figure down?
Thanks a lot for your time Doug.
Neil
Doug Turner wrote:
Neil Freeman wrote:Can this size of ~8.9mb be achieved just be setting various configure flags? If so would you be kind enough to let me know what options you are enabling/disabling?
The first thing you can do is after making a mozilla build (see http://www.mozilla.org/build/), change directory into mozilla/embedding/config/. From there, do a make. You should have a the "base" requirements for Gecko in a directory named mozilla/dist/Embed/.
You should also take a look at the build configurator. This is a way to toggle the support options mozilla has:
http://webtools.mozilla.org/build/config.cgi
Hope this helps,
Doug Turner
