]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
dhcp: disable isc assertions (reproducible builds)
authorPeter Seiderer <ps.report@gmx.net>
Fri, 27 Oct 2017 19:24:24 +0000 (21:24 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 3 Feb 2018 21:50:09 +0000 (22:50 +0100)
The isc assertions from the bundled bind dns library are
using the __FILE__ macro for debug messages (see
dhcp-4.3.5/bind/bind-9.9.9-P3/lib/isc/include/isc/assertions.h).

Disabling the assertions gains:

- reproducible builds (no build time paths in the executable)
- space saving on the target:
  dhcpd: 1.9M -> 1.6M
  dhcrelay: 1.6M -> 1.3M

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/dhcp/dhcp.mk

index 4e1b24b7001c5111625267f4898ce1b8face2f3a..a1285184d371364f0848710b1c78fd676e718797 100644 (file)
@@ -11,7 +11,9 @@ DHCP_LICENSE = ISC
 DHCP_LICENSE_FILES = LICENSE
 DHCP_CONF_ENV = \
        CPPFLAGS='-D_PATH_DHCPD_CONF=\"/etc/dhcp/dhcpd.conf\" \
-               -D_PATH_DHCLIENT_CONF=\"/etc/dhcp/dhclient.conf\"'
+               -D_PATH_DHCLIENT_CONF=\"/etc/dhcp/dhclient.conf\"' \
+       CFLAGS='$(TARGET_CFLAGS) -DISC_CHECK_NONE=1'
+
 DHCP_CONF_OPTS = \
        --with-randomdev=/dev/random \
        --with-srv-lease-file=/var/lib/dhcp/dhcpd.leases \