1. Updated to git HEAD bd2862080c7f55450a99b5565650c8300512a59a
[feed/telephony.git] / kamailio-4.0.x / patches / 001-mod-json-fix-library-name.patch
1 --- kamailio4-4.0.1/modules/json/Makefile       2013-04-25 16:56:29.000000000 +0200
2 +++ kamailio4-next/modules/json/Makefile        2013-05-31 10:54:42.125995025 +0200
3 @@ -11,12 +11,12 @@ LIBS=
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 -ljson
11 +       LIBS+=-L$(SYSBASE)/include/lib -L$(LOCALBASE)/lib -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  endif
18  DEFS+=-DKAMAILIO_MOD_INTERFACE
19