[Xapian-discuss] libraries too large ?

James Aylett james-xapian at tartarus.org
Sun Jan 6 19:58:07 GMT 2008


On Sun, Jan 06, 2008 at 09:36:25PM +0200, Adi Oanca wrote:

> Can the library sizes be reduced a bit more?

The libraries are built with debugging symbols, to make development
easier. You can strip these out on Unixoids by running:

$ strip <library-file>

With this, on Debian 4.0 I go from 36.0M to 2.1M for static, 13.7M to
1.6M for dynamic. On Windows there may be a tool, or you could disable
debugging symbols during compilation in some way.
 
> I see it's possible because the cygwin package from the Xapian website
> offers a .dll with a size of 2.714.156 bytes. Same with the Linux
> version from Ubuntu repository, which has 1.567.308 bytes.

Most distributions will ship stripped versions of the
binaries. On Debian/Ubuntu the convetion is to offer -dbg (debug)
versions of the packages with the debugging symbols left in.

J

-- 
/--------------------------------------------------------------------------\
  James Aylett                                                  xapian.org
  james at tartarus.org                               uncertaintydivision.org



More information about the Xapian-discuss mailing list