libtool & DHCP

Tomek Mrugalski tomasz at isc.org
Fri Mar 9 19:56:18 UTC 2012


On 09.03.2012 04:34, Dave Taht wrote:
>>> On Mar 5, 2012, at 5:16 PM, Francis Dupont wrote:
> Incidentally I just built isc-dhcp 4.2.3-P2 and bind 9.9.0 for cerowrt.
> The build recipe is available in the github ceropackages repository.
> 
> The ceropackage presently statically links dhclient and dhcpd
> and consumes this amount of 'disk'
> 
> 1581365 Mar  9 03:01 dhcpd
> 1385509 Mar  9 03:01 dhclient
You can improve them a bit. I just looked at ceropackages repo and you
seem to use -O2 optimization, rather than -Os (size). That is when
compiling bind library. See
ceropackages/net/dhcp4/patches/001-bind-exports-fix-make.patch. I don't
know OpenWRT build system to know with which parameters packages are
built. Even assuming that they are built with -Os as they should be,
this CFLAGS override will make sure that BIND lib will be built with -O2
rather than -Os.

It won't do miracles but it should go down by a little bit. On regular
amd64 the difference is around 70KB. Not much, but it's better than nothing.

Tomek


More information about the sdcpe-devel mailing list