Tiny Samba client package

I recently posted about compiling Samba-tng:
http://bkhome.org/blog/?viewDetailed=01700

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 'samba_tng_client-20100705-s131.pet', with 'smbclient', 'nmblookup, 'smbsend', 'smbstatus' and 'testparm' -- and the PET is only 246KB!

The libraries included in the PET are libnmb.so*, libsmb.so* and libsamba.so*. 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.


Posted on 7 Jul 2010, 19:07


No comments posted yet.