[Samba] How to reduce size of samba binaries

Dennis Vriezekolk dennisvr at yahoo.com
Fri Mar 1 03:44:03 GMT 2002


--- Andrew Bartlett <abartlet at pcug.org.au> wrote:
> Dennis Vriezekolk wrote:
> > 
> > Hi,
> > 
> > I'd like to reduce the size of the samba binaries. smbd for
> instance is
> > about 1.5 meg, which is way to much if you ask me. Is there a way
> to
> > create smaller binaries, maybe by compiling differently?
> 
> The only real trick in this area is to turn off debugging.
> 
> From include/local.h:
> 
> /* the maximum debug level to compile into the code. This assumes a
> good 
>    optimising compiler that can remove unused code 
>    for embedded or low-memory systems set this to a value like 2 to
> get
>    only important messages. This gives *much* smaller binaries
> */
> #ifndef MAX_DEBUG_LEVEL
> #define MAX_DEBUG_LEVEL 1000
> #endif
> 
> Thank tridge for this one!
> 
> Andrew Bartlett
> 
> -- 
> Andrew Bartlett                                 abartlet at pcug.org.au
> Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
> Student Network Administrator, Hawker College   abartlet at hawkerc.net
> http://samba.org     http://build.samba.org     http://hawkerc.net

I can't find these lines in include/local.h is it okay if I just add
them, or do I have a different version or something (version 2.2.3a)

thanx,

Dennis

=====


__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com




More information about the samba mailing list