summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2013-04-29 10:42:59 +0200
committerLars-Dominik Braun <lars@6xq.net>2013-04-30 14:55:16 +0200
commit6f12e9c23359781487987b300daf40024cd43d9a (patch)
treef50ef57d301aea26d9e79fb0e8a3d8c5ddf272ec
parent53cef3ed55a314503372a283c4c94f6691d83ddd (diff)
downloadpianobar-windows-6f12e9c23359781487987b300daf40024cd43d9a.tar.gz
pianobar-windows-6f12e9c23359781487987b300daf40024cd43d9a.tar.bz2
pianobar-windows-6f12e9c23359781487987b300daf40024cd43d9a.zip
Makefile: Use new json-c pkgconfig file name
Keeps compatibility with older versions (will be removed in the future). Closes #364.
-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)