Explorar el Código

package/bind: remove threads dependency

Threads dependency has been added in 2015 with commit
07c1ad4647b6a8e60338fc01ddcb2d629de0ad14 however bind can be built
without threads thanks to --disable-threads

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Fabrice Fontaine hace 6 años
padre
commit
8935dae1d4
Se han modificado 2 ficheros con 1 adiciones y 5 borrados
  1. 0 5
      package/bind/Config.in
  2. 1 0
      package/bind/bind.mk

+ 0 - 5
package/bind/Config.in

@@ -1,7 +1,6 @@
 config BR2_PACKAGE_BIND
 config BR2_PACKAGE_BIND
 	bool "bind"
 	bool "bind"
 	depends on BR2_USE_MMU # fork()
 	depends on BR2_USE_MMU # fork()
-	depends on BR2_TOOLCHAIN_HAS_THREADS
 	help
 	help
 	  BIND (Berkeley Internet Name Domain) is an
 	  BIND (Berkeley Internet Name Domain) is an
 	  implementation of the Domain Name System (DNS) protocols
 	  implementation of the Domain Name System (DNS) protocols
@@ -39,7 +38,3 @@ config BR2_PACKAGE_BIND_TOOLS
 	  Install tools (dig, host, nslookup, nsupdate)
 	  Install tools (dig, host, nslookup, nsupdate)
 
 
 endif
 endif
-
-comment "bind needs a toolchain w/ threads"
-	depends on BR2_USE_MMU
-	depends on !BR2_TOOLCHAIN_HAS_THREADS

+ 1 - 0
package/bind/bind.mk

@@ -24,6 +24,7 @@ BIND_CONF_ENV = \
 	BUILD_CC="$(TARGET_CC)" \
 	BUILD_CC="$(TARGET_CC)" \
 	BUILD_CFLAGS="$(TARGET_CFLAGS)"
 	BUILD_CFLAGS="$(TARGET_CFLAGS)"
 BIND_CONF_OPTS = \
 BIND_CONF_OPTS = \
+	$(if $(BR2_TOOLCHAIN_HAS_THREADS),--enable-threads,--disable-threads) \
 	--without-lmdb \
 	--without-lmdb \
 	--with-libjson=no \
 	--with-libjson=no \
 	--with-randomdev=/dev/urandom \
 	--with-randomdev=/dev/urandom \