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