On Mon, Jul 21, 2008 at 04:28:42PM -0700, Larry Doolittle wrote:
> The bulk of smbclient's installed size comes from five binaries:
>   rpcclient
>   smbcacls
>   smbclient
>   smbcquotas
>   smbget
> Each one was 1.4 to 2.4 MBytes in smbclient-3.0.31, and are 4.3 to 4.7 MBytes
> in smbclient-3.2.0.

> I tried the following quick experiment:
>  1. Download samba 3.2.0
>  2. cd source && ./configure
>  3. Delete the stoopid "@" in the Makefile rule for bin/smbclient
>  4. make bin/smbclient && strip bin/smbclient
>  5. ls -l bin/smbclient
> -rwxr-xr-x 1 ldoolitt ldoolitt 3935560 2008-07-21 16:01 bin/smbclient
>  6. ar r foo.a [massive cut-and-paste of all the .o files listed in step 4]
>  7. gcc ... [cut-and paste from step 4, substituting "foo.a" for the .o files]
>  8. strip bin/smbclient
>  9. ls -l bin/smbclient
> -rwxr-xr-x 1 ldoolitt ldoolitt 3086272 2008-07-21 16:08 bin/smbclient

> Hmmm.  That was an easy megabyte (almost) to trim.  But the resulting 
> smbclient
> binary is still over twice the size of the 3.0.31 version.  

Well, it's a place to start; if you would be willing to put together a patch
to do this for each of the programs in source/Makefile.in, I'd happily
accept it (since it would save me quite a bit of upload time for each
package revision :P).

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
[EMAIL PROTECTED]                                     [EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to