blob: 60ab4f2c3318ba6f93c60404a72c48e0660b11b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--- a/src/modules/erlang/Makefile
+++ b/src/modules/erlang/Makefile
@@ -5,20 +5,21 @@ include ../../Makefile.defs
auto_gen=
NAME=erlang.so
-ERLANG=$(shell which erl)
+# In OpenWrt Erlang resides in standard locations, no special flags required
+#ERLANG=$(shell which erl)
ifneq ($(ERLANG),)
ERLANG_LIBDIR=$(shell $(ERLANG) -noshell -eval 'io:format("~n~s/lib~n", [[code:lib_dir("erl_interface")]]).' -s erlang halt | tail -n 1)
ERLANG_INCDIR=$(shell $(ERLANG) -noshell -eval 'io:format("~n~s/include~n", [[code:lib_dir("erl_interface")]]).' -s erlang halt | tail -n 1)
endif
-ifeq ($(ERLANG_LIBDIR)$(ERLANG_INCDIR),)
-$(error Not found Erlang)
-endif
+#ifeq ($(ERLANG_LIBDIR)$(ERLANG_INCDIR),)
+#$(error Not found Erlang)
+#endif
-LIBS=-L$(ERLANG_LIBDIR) -lei -lpthread
+LIBS=-lei -lpthread
-DEFS+=-I$(ERLANG_INCDIR)
+#DEFS+=-I$(ERLANG_INCDIR)
DEFS+=-D_REENTRANT
|