summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3dda79e..122852e 100644
--- a/Makefile
+++ b/Makefile
@@ -88,8 +88,8 @@ LIBGNUTLS_LDFLAGS=$(shell pkg-config --libs gnutls)
LIBGCRYPT_CFLAGS=
LIBGCRYPT_LDFLAGS=-lgcrypt
-LIBJSONC_CFLAGS=$(shell pkg-config --cflags json)
-LIBJSONC_LDFLAGS=$(shell pkg-config --libs json)
+LIBJSONC_CFLAGS=$(shell pkg-config --cflags json-c 2>/dev/null || pkg-config --cflags json)
+LIBJSONC_LDFLAGS=$(shell pkg-config --libs json-c 2>/dev/null || pkg-config --libs json)
# build pianobar
ifeq (${DYNLINK},1)