site  contact  subhomenews

Tiny Samba client package

July 07, 2010 — BarryK
I recently posted about compiling Samba-tng:

Technosaurus is a wizard with configure options to make the files smaller, and he provided me with some advice. I have recompiled Samba-tng with shared libraries, like this:

# CFLAGS=" -pipe -combine -Os -momit-leaf-frame-pointer -fomit-frame-pointer -ffunction-sections -fdata-sections -fmerge-all-constants -march=i486 -mtune=i686 " LDFLAGS=" -Wl,-O4,-Os,-relax,--sort-common,--gc-sections,-s " CXXFLAGS=" -pipe -combine -Os -momit-leaf-frame-pointer -fomit-frame-pointer -fmerge-all-constants -ffunction-sections -fdata-sections -march=i486 -mtune=i686 " ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --build=i486-pc-linux-gnu --enable-shared --disable-static --with-sambaconfdir=/etc/samba --with-privatedir=/etc/samba/private --with-tmpdir=/var/samba/locks --with-logdir=/var/samba/log --with-cups --with-automount

Samba-tng does not accept '--disable-pie', that was one of technosaurus' recommendations.
The option '--with-smbmount' is accepted, however Samba-tng does not build that utility.

I created a client-only package '', with 'smbclient', 'nmblookup, 'smbsend', 'smbstatus' and 'testparm' -- and the PET is only 246KB!

The libraries included in the PET are*,* and*. It is good to have these, as I think there are some applications that can use them.

Note, we can print without 'smbspool', I'll post about that next.

Tags: puppy