Merge pull request #592 from micmac1/kam-build-fixes
kamailio-5.x: build fixes
This commit is contained in:
commit
9cc7913dcc
2 changed files with 32 additions and 2 deletions
|
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=kamailio5
|
PKG_NAME:=kamailio5
|
||||||
PKG_VERSION:=5.4.0
|
PKG_VERSION:=5.4.0
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE_URL:=https://www.kamailio.org/pub/kamailio/$(PKG_VERSION)/src
|
PKG_SOURCE_URL:=https://www.kamailio.org/pub/kamailio/$(PKG_VERSION)/src
|
||||||
PKG_SOURCE:=kamailio-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz
|
PKG_SOURCE:=kamailio-$(PKG_VERSION)$(PKG_VARIANT)_src.tar.gz
|
||||||
|
@ -407,7 +407,7 @@ EXTRA_MODULES:= \
|
||||||
# When CONFIG_CPU_TYPE matches one of the identifiers in the list below, set
|
# When CONFIG_CPU_TYPE matches one of the identifiers in the list below, set
|
||||||
# ARCH to "mips2" to get FAST_LOCK support.
|
# ARCH to "mips2" to get FAST_LOCK support.
|
||||||
ifeq ($(call qstrip,$(CONFIG_ARCH)),mips)
|
ifeq ($(call qstrip,$(CONFIG_ARCH)),mips)
|
||||||
CPU_MIPS2:=mips32 24kc 34kc 74kc
|
CPU_MIPS2:=mips32 24kc 34kc 4kec 74kc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
MAKE_FLAGS += \
|
MAKE_FLAGS += \
|
||||||
|
|
30
net/kamailio-5.x/patches/150-erlang-fix-flags.patch
Normal file
30
net/kamailio-5.x/patches/150-erlang-fix-flags.patch
Normal file
|
@ -0,0 +1,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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue