d0dc96200e01bd0c485b9fc522ce2dae9a32515e
[feed/telephony.git] / kamailio-4.0.x / patches / 002-mod-jsonrpc-fix-library-name.patch
1 --- kamailio4-4.0.1/modules/jsonrpc-c/Makefile  2013-04-25 16:56:29.000000000 +0200
2 +++ kamailio4-next/modules/jsonrpc-c/Makefile   2013-05-31 10:58:00.689999015 +0200
3 @@ -11,12 +11,12 @@ LIBS=-lm
4  
5  BUILDER = $(shell which pkg-config)
6  ifeq ($(BUILDER),)
7 -       DEFS+=-I/usr/include/json -I$(LOCALBASE)/include/json \
8 +       DEFS+=-I/usr/include/json-c -I$(LOCALBASE)/include/json-c \
9         -I$(LOCALBASE)/include
10 -       LIBS+=-L$(SYSBASE)/include/lib -L$(LOCALBASE)/lib -levent -ljson
11 +       LIBS+=-L$(SYSBASE)/include/lib -L$(LOCALBASE)/lib -levent -ljson-c
12  else
13 -       DEFS+= $(shell pkg-config --cflags json)
14 -       LIBS+= $(shell pkg-config --libs json)
15 +       DEFS+= $(shell pkg-config --cflags json-c)
16 +       LIBS+= $(shell pkg-config --libs json-c)
17         DEFS+= $(shell pkg-config --cflags libevent)
18         LIBS+= $(shell pkg-config --libs libevent)
19  endif