* [Buildroot] [PATCH] erlang: Remove BR2_TOOLCHAIN_HAS_THREADS dependency
@ 2015-10-20 13:54 Ezequiel Garcia
2015-10-21 20:12 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Ezequiel Garcia @ 2015-10-20 13:54 UTC (permalink / raw)
To: buildroot
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 <ezequiel@vanguardiasur.com.ar>
---
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 625b7c1b829f..0ec01bb749b4 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 499f62c1539b..848d1ddc44c5 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.5.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] erlang: Remove BR2_TOOLCHAIN_HAS_THREADS dependency
2015-10-20 13:54 [Buildroot] [PATCH] erlang: Remove BR2_TOOLCHAIN_HAS_THREADS dependency Ezequiel Garcia
@ 2015-10-21 20:12 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-10-21 20:12 UTC (permalink / raw)
To: buildroot
Dear Ezequiel Garcia,
On Tue, 20 Oct 2015 10:54:46 -0300, Ezequiel Garcia wrote:
> 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 <ezequiel@vanguardiasur.com.ar>
> ---
> package/erlang/Config.in | 5 ++---
> package/erlang/erlang.mk | 4 ++++
> 2 files changed, 6 insertions(+), 3 deletions(-)
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-21 20:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-20 13:54 [Buildroot] [PATCH] erlang: Remove BR2_TOOLCHAIN_HAS_THREADS dependency Ezequiel Garcia
2015-10-21 20:12 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.