libsmbclient size too big for embedded

Richard Sharpe realrichardsharpe at
Thu May 13 13:26:09 MDT 2010

On Thu, May 13, 2010 at 9:17 AM, Barry Sia <Barry.Sia at> wrote:
> Hi,
> I'm trying to use libsmbclient in my embedded device.  However, it's too
> big (currently 5.8 MB samba v3.4.4). I played around with the configure
> options (removing ldap, etc.) but the smallest I got was still around 4+
> MB.
> Has anyone successfully reduced the size of libsmbclient? I only need
> basic functionality like browsing hosts and shares.   If there are any
> tweaks I could do in the Makefile to remove optional binary objects,
> please let me know.

Have you tried strip?

If that doesn't help much, the next step would be to split
libsmbclient into separate libraries with base functionality in one
and so forth.

Richard Sharpe

More information about the samba-technical mailing list