diff options
-rw-r--r-- | package/erlang/erlang.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/package/erlang/erlang.mk b/package/erlang/erlang.mk index c9d7b22670..3200c388fd 100644 --- a/package/erlang/erlang.mk +++ b/package/erlang/erlang.mk @@ -55,8 +55,12 @@ else ERLANG_CONF_OPTS += --without-ssl endif -ifeq ($(BR2_PACKAGE_UNIXODBC),y) +# ODBC support in erlang requires threads +ifeq ($(BR2_PACKAGE_UNIXODBC)$(BR2_TOOLCHAIN_HAS_THREADS),yy) ERLANG_DEPENDENCIES += unixodbc +ERLANG_CONF_OPTS += --with-odbc +else +ERLANG_CONF_OPTS += --without-odbc endif ifeq ($(BR2_PACKAGE_ZLIB),y) |