aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Peter Seiderer <ps.report@gmx.net>2017-10-27 21:24:24 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-02-03 22:50:09 +0100
commit3d1a7a86205a31625a8d5e8666ae7eb357e0de75 (patch)
tree85ac441954bb7ff48ea7b2aaabc2d73398c8b16c
parenta67cb08d19e6c123737f7401e87103ecca046ea9 (diff)
downloadbuildroot-3d1a7a86205a31625a8d5e8666ae7eb357e0de75.tar.gz
buildroot-3d1a7a86205a31625a8d5e8666ae7eb357e0de75.tar.bz2
dhcp: disable isc assertions (reproducible builds)
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>
-rw-r--r--package/dhcp/dhcp.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/dhcp/dhcp.mk b/package/dhcp/dhcp.mk
index 4e1b24b700..a1285184d3 100644
--- a/package/dhcp/dhcp.mk
+++ b/package/dhcp/dhcp.mk
@@ -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 \