From 75349661018ae61702f57983c4091c3f823a21c5 Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 2 Sep 2013 15:49:49 -0400 Subject: [PATCH] use pkg-config for JSON=true --- src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index b897a2b..a1446dd 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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