You are probably just building a version with debug information
enabled. The distributed binaries have debug info disabled and
are thus much smaller. See the build options info linked from
http://mozilla.org/build/unix.html. I think you just need to
configure with --disable-debug. But I'm not a Unix hacker...
there may be more to producing a non-debug build than that.
John.
Xuedong Zhang wrote:
>
> Everything runs OK on my Redhat6.2 and Mandrake 7.2 machine when I
> installed the XPCOM standalone as described in the document.
>
> Now I have some questions:
> 1. I find the libxpcom.so is as large as 7M, while the libxpcom.so under
> mozilla M18 is only 780K. so why there is such a big difference?
>
> If I want to program to use the Component that mozilla provide, it seems
> I can only access these component throught the libxpcom.so I got.
>
> 2. The advantage of the COM is that I only need to communicate with
> xpcom, so when the components update, I needn't update the program. But
> now I don't want to use the libxpcom.so generated by xpcom standalone,
> I want to use the libxpcom.so distributed by mozilla (which is small)
> How can I do that
>
> 3. For xpcom standalone, How can I reduce the size of libxpcom.so,
> anyone tried that before?