1 --- a/src/modules/erlang/Makefile
2 +++ b/src/modules/erlang/Makefile
3 @@ -5,20 +5,21 @@ include ../../Makefile.defs
7 -ERLANG=$(shell which erl)
8 +# In OpenWrt Erlang resides in standard locations, no special flags required
9 +#ERLANG=$(shell which erl)
12 ERLANG_LIBDIR=$(shell $(ERLANG) -noshell -eval 'io:format("~n~s/lib~n", [[code:lib_dir("erl_interface")]]).' -s erlang halt | tail -n 1)
13 ERLANG_INCDIR=$(shell $(ERLANG) -noshell -eval 'io:format("~n~s/include~n", [[code:lib_dir("erl_interface")]]).' -s erlang halt | tail -n 1)
16 -ifeq ($(ERLANG_LIBDIR)$(ERLANG_INCDIR),)
17 -$(error Not found Erlang)
19 +#ifeq ($(ERLANG_LIBDIR)$(ERLANG_INCDIR),)
20 +#$(error Not found Erlang)
23 -LIBS=-L$(ERLANG_LIBDIR) -lei -lpthread
26 -DEFS+=-I$(ERLANG_INCDIR)
27 +#DEFS+=-I$(ERLANG_INCDIR)