[Samba] Lightweight build of smbclient only

Jeremy Allison jra at samba.org
Fri Nov 16 01:03:52 UTC 2018


On Thu, Nov 15, 2018 at 02:24:08AM +0000, Craig McQueen via samba wrote:
> I'm interested in using smbclient in an embedded Linux system, to copy files to a Windows file share. I don't need the entire samba suite. I'd like to get a smbclient compile that is reasonably small (less than 3 MB ideally).
> 
> I'm building the embedded Linux system cross-compiled for an ARM based platform using Yocto. Yocto has support for building samba. But it is aimed at the complete samba suite, whereas I really only want smbclient. In the past I've been able to cut it down reasonably to just the smbclient. But in the last year, changes to samba and the Yocto samba package have made it more difficult to cut it down to a minimal smbclient.
> 
> What would the samba team recommend for cross-compiling a small smbclient suitable for embedded Linux?

Can you just do a "normal" build and
then separate out the shared libraries
needed that smbclient links to (via
ldd bin/smbclient) ?

Hockey and not an automated solution,
but should get you the minimal set you
need for smbclient..



More information about the samba mailing list