From a4d572ce085b4b7baaff396a165f209108659522 Mon Sep 17 00:00:00 2001 From: Jiri Slachta Date: Fri, 31 May 2013 13:19:39 +0200 Subject: [PATCH] kamailio4: fix json modules Signed-off-by: Jiri Slachta --- .../patches/001-mod-json-fix-library-name.patch | 19 +++++++++++++++++++ .../patches/002-mod-jsonrpc-fix-library-name.patch | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 kamailio-4.0.x/patches/001-mod-json-fix-library-name.patch create mode 100644 kamailio-4.0.x/patches/002-mod-jsonrpc-fix-library-name.patch diff --git a/kamailio-4.0.x/patches/001-mod-json-fix-library-name.patch b/kamailio-4.0.x/patches/001-mod-json-fix-library-name.patch new file mode 100644 index 0000000..772aaa2 --- /dev/null +++ b/kamailio-4.0.x/patches/001-mod-json-fix-library-name.patch @@ -0,0 +1,19 @@ +--- kamailio4-4.0.1/modules/json/Makefile 2013-04-25 16:56:29.000000000 +0200 ++++ kamailio4-next/modules/json/Makefile 2013-05-31 10:54:42.125995025 +0200 +@@ -11,12 +11,12 @@ LIBS= + + BUILDER = $(shell which pkg-config) + ifeq ($(BUILDER),) +- DEFS+=-I/usr/include/json -I$(LOCALBASE)/include/json \ ++ DEFS+=-I/usr/include/json-c -I$(LOCALBASE)/include/json-c \ + -I$(LOCALBASE)/include +- LIBS+=-L$(SYSBASE)/include/lib -L$(LOCALBASE)/lib -ljson ++ LIBS+=-L$(SYSBASE)/include/lib -L$(LOCALBASE)/lib -ljson-c + else +- DEFS+= $(shell pkg-config --cflags json) +- LIBS+= $(shell pkg-config --libs json) ++ DEFS+= $(shell pkg-config --cflags json-c) ++ LIBS+= $(shell pkg-config --libs json-c) + endif + DEFS+=-DKAMAILIO_MOD_INTERFACE + diff --git a/kamailio-4.0.x/patches/002-mod-jsonrpc-fix-library-name.patch b/kamailio-4.0.x/patches/002-mod-jsonrpc-fix-library-name.patch new file mode 100644 index 0000000..d0dc962 --- /dev/null +++ b/kamailio-4.0.x/patches/002-mod-jsonrpc-fix-library-name.patch @@ -0,0 +1,19 @@ +--- kamailio4-4.0.1/modules/jsonrpc-c/Makefile 2013-04-25 16:56:29.000000000 +0200 ++++ kamailio4-next/modules/jsonrpc-c/Makefile 2013-05-31 10:58:00.689999015 +0200 +@@ -11,12 +11,12 @@ LIBS=-lm + + BUILDER = $(shell which pkg-config) + ifeq ($(BUILDER),) +- DEFS+=-I/usr/include/json -I$(LOCALBASE)/include/json \ ++ DEFS+=-I/usr/include/json-c -I$(LOCALBASE)/include/json-c \ + -I$(LOCALBASE)/include +- LIBS+=-L$(SYSBASE)/include/lib -L$(LOCALBASE)/lib -levent -ljson ++ LIBS+=-L$(SYSBASE)/include/lib -L$(LOCALBASE)/lib -levent -ljson-c + else +- DEFS+= $(shell pkg-config --cflags json) +- LIBS+= $(shell pkg-config --libs json) ++ DEFS+= $(shell pkg-config --cflags json-c) ++ LIBS+= $(shell pkg-config --libs json-c) + DEFS+= $(shell pkg-config --cflags libevent) + LIBS+= $(shell pkg-config --libs libevent) + endif -- 2.11.0