Regarding samba image and shared libraries size

Andrew Bartlett abartlet at
Tue Apr 11 20:28:30 UTC 2017

On Tue, 2017-04-11 at 21:47 +0200, Stefan Metzmacher via samba-
technical wrote:
> Hi Jawath,
> I'm not sure we can shrink the overall size, but we can shrink the
> number of shared libraries.
> See look for "nonshared-configure" in
> The important one is --nonshared-binary=smbtorture,smbd/smbd
> "none-configure" may also have useful options, e.g.
> --with-static-modules=!FORCED,!DEFAULT
> --with-shared-modules=!FORCED,!DEFAULT
> which avoids as much modules as possible.
> --without-ad-dc may also reduce the size.
> Maybe something of this helps a bit...

I was able to trim it down a bit with some gcc options:

It needs some work, but that combined with some options to remove
spoolss and other unused pipes (for the fileserver) might help a lot.

Andrew Bartlett
Andrew Bartlett             
Authentication Developer, Samba Team
Samba Developer, Catalyst IT

More information about the samba-technical mailing list