diff --git a/package/dhcp/dhcp.mk b/package/dhcp/dhcp.mk index cbc95cb152..183c8322d6 100644 --- a/package/dhcp/dhcp.mk +++ b/package/dhcp/dhcp.mk @@ -62,9 +62,14 @@ else DHCP_BIND_EXTRA_CONFIG += --without-zlib endif +ifeq ($(BR2_TOOLCHAIN_HAS_ATOMIC),y) +DHCP_BIND_EXTRA_CONFIG += --enable-atomic ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) DHCP_CONF_ENV += LIBS=-latomic endif +else +DHCP_BIND_EXTRA_CONFIG += --disable-atomic +endif ifeq ($(BR2_STATIC_LIBS),y) DHCP_CONF_OPTS += --disable-libtool