summaryrefslogtreecommitdiffstats
path: root/package/dhcp
diff options
context:
space:
mode:
Diffstat (limited to 'package/dhcp')
-rw-r--r--package/dhcp/dhcp.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/package/dhcp/dhcp.mk b/package/dhcp/dhcp.mk
index 64472c9e8..58fd47c8a 100644
--- a/package/dhcp/dhcp.mk
+++ b/package/dhcp/dhcp.mk
@@ -13,8 +13,11 @@ DHCP_CONF_OPT = \
--with-cli-lease-file=/var/lib/dhcp/dhclient.leases \
--with-srv-pid-file=/var/run/dhcpd.pid \
--with-cli-pid-file=/var/run/dhclient.pid \
- --with-relay-pid-file=/var/run/dhcrelay.pid \
- --disable-dhcpv6
+ --with-relay-pid-file=/var/run/dhcrelay.pid
+
+ifneq ($(BR2_INET_IPV6),y)
+ DHCP_CONF_OPT += --disable-dhcpv6
+endif
ifeq ($(BR2_PACKAGE_DHCP_SERVER),y)
define DHCP_INSTALL_SERVER