mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 05:36:32 +00:00
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 <ezequiel@vanguardiasur.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
6604119823
commit
cbcecc2453
@ -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_USE_MMU # fork()
|
||||||
depends on BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS
|
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
|
config BR2_PACKAGE_ERLANG
|
||||||
bool "erlang"
|
bool "erlang"
|
||||||
depends on BR2_USE_MMU # fork()
|
depends on BR2_USE_MMU # fork()
|
||||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
|
||||||
depends on !BR2_STATIC_LIBS
|
depends on !BR2_STATIC_LIBS
|
||||||
depends on BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS
|
depends on BR2_PACKAGE_LIBATOMIC_ARCH_SUPPORTS
|
||||||
select BR2_PACKAGE_LIBATOMIC_OPS
|
select BR2_PACKAGE_LIBATOMIC_OPS
|
||||||
|
4
package/erlang/erlang.mk
vendored
4
package/erlang/erlang.mk
vendored
@ -40,6 +40,10 @@ HOST_ERLANG_CONF_OPTS = --without-javac --with-ssl=$(HOST_DIR)/usr
|
|||||||
|
|
||||||
HOST_ERLANG_CONF_OPTS += --without-termcap
|
HOST_ERLANG_CONF_OPTS += --without-termcap
|
||||||
|
|
||||||
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
|
||||||
|
ERLANG_CONF_OPTS += --disable-threads
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_NCURSES),y)
|
ifeq ($(BR2_PACKAGE_NCURSES),y)
|
||||||
ERLANG_CONF_OPTS += --with-termcap
|
ERLANG_CONF_OPTS += --with-termcap
|
||||||
ERLANG_DEPENDENCIES += ncurses
|
ERLANG_DEPENDENCIES += ncurses
|
||||||
|
Loading…
x
Reference in New Issue
Block a user