From cbcecc2453ec7f94d82f32a1acd33a09e576ecee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ezequiel=20Garc=C3=ADa?= Date: Tue, 20 Oct 2015 10:54:46 -0300 Subject: [PATCH] erlang: Remove BR2_TOOLCHAIN_HAS_THREADS dependency Erlang can be built without threads support, by passing an appropriate config option. This commit drops the config dependency on BR2_TOOLCHAIN_HAS_THREADS and instead passes --disable-threads if the toolchain doesn't support threads. While here, change the wording of the config comment to "dynamic library" to be consistent with similar comments elsewhere. Signed-off-by: Ezequiel Garcia Signed-off-by: Thomas Petazzoni --- package/erlang/Config.in | 5 ++--- package/erlang/erlang.mk | 4 ++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package/erlang/Config.in b/package/erlang/Config.in index 625b7c1b82..0ec01bb749 100644 --- a/package/erlang/Config.in +++ b/package/erlang/Config.in @@ -1,12 +1,11 @@ -comment "erlang needs a toolchain w/ threads, shared library" +comment "erlang needs a toolchain w/ dynamic library" depends on BR2_USE_MMU # fork() depends on BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS - depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS + depends on BR2_STATIC_LIBS config BR2_PACKAGE_ERLANG bool "erlang" depends on BR2_USE_MMU # fork() - depends on BR2_TOOLCHAIN_HAS_THREADS depends on !BR2_STATIC_LIBS depends on BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS select BR2_PACKAGE_LIBATOMIC_OPS diff --git a/package/erlang/erlang.mk b/package/erlang/erlang.mk index 499f62c153..848d1ddc44 100644 --- a/package/erlang/erlang.mk +++ b/package/erlang/erlang.mk @@ -40,6 +40,10 @@ HOST_ERLANG_CONF_OPTS = --without-javac --with-ssl=$(HOST_DIR)/usr HOST_ERLANG_CONF_OPTS += --without-termcap +ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),) +ERLANG_CONF_OPTS += --disable-threads +endif + ifeq ($(BR2_PACKAGE_NCURSES),y) ERLANG_CONF_OPTS += --with-termcap ERLANG_DEPENDENCIES += ncurses -- 2.30.2