On Fri, Aug 01, 2008 at 06:04:59PM +0800, ???? wrote: > Hi, > I'm trying to transplant samba 3.2 to my mips board. I did it but smbd > is too big, about 8MB, I decided to reduce the code size. I just want the > file share/display funcs between my box and windows PC. The first function I > want to drop is network printer. So is there a specific option to drop all > printer code? It seems to take quite a lot of time to let me comment out > things I don't need. > BTW, any suggestions to lose the code size according to my feature > reqirement is welcome. I tried "-Os" and strip things, it seems the smallest > binary size is 6.4MB, I still can't afford it...
There's no easy way to do this I'm afraid. You'll need to hack Samba quite a bit to remove this. You could try removing PIPE_SPOOLSS from the handled pipes table then hack out all the connecting RPC functions. That might do it. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
