60ab4f2c3318ba6f93c60404a72c48e0660b11b2
[feed/telephony.git] / net / kamailio-5.x / patches / 150-erlang-fix-flags.patch
1 --- a/src/modules/erlang/Makefile
2 +++ b/src/modules/erlang/Makefile
3 @@ -5,20 +5,21 @@ include ../../Makefile.defs
4 auto_gen=
5 NAME=erlang.so
6
7 -ERLANG=$(shell which erl)
8 +# In OpenWrt Erlang resides in standard locations, no special flags required
9 +#ERLANG=$(shell which erl)
10
11 ifneq ($(ERLANG),)
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)
14 endif
15
16 -ifeq ($(ERLANG_LIBDIR)$(ERLANG_INCDIR),)
17 -$(error Not found Erlang)
18 -endif
19 +#ifeq ($(ERLANG_LIBDIR)$(ERLANG_INCDIR),)
20 +#$(error Not found Erlang)
21 +#endif
22
23 -LIBS=-L$(ERLANG_LIBDIR) -lei -lpthread
24 +LIBS=-lei -lpthread
25
26 -DEFS+=-I$(ERLANG_INCDIR)
27 +#DEFS+=-I$(ERLANG_INCDIR)
28 DEFS+=-D_REENTRANT
29
30