use pkg-config for JSON=true
This commit is contained in:
parent
e02ac4eb0b
commit
7534966101
@ -43,8 +43,8 @@ ifeq ($(REDIS), true)
|
||||
endif
|
||||
|
||||
ifeq ($(JSON), true)
|
||||
LDLIBS+=-L/usr/local/lib -ljson-c
|
||||
CFLAGS+=-DJSON -I/usr/local/include/json-c
|
||||
LDLIBS+=$(shell pkg-config --libs json-c)
|
||||
CFLAGS+=-DJSON $(shell pkg-config --cflags json-c)
|
||||
objects+=module_json.o
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user