Regarding samba image and shared libraries size

Andrew Bartlett abartlet at samba.org
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
> https://git.samba.org/?p=samba.git;a=blob;f=script/autobuild.py
> 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:

https://lists.samba.org/archive/samba-technical/2017-January/118470.html

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                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba




More information about the samba-technical mailing list