Просмотр исходного кода

json|jsonrpc-c: fix detection of json-c lib

(cherry picked from commit c290e58b7f50bdd7f9d691c4890baf1c9f74cb0d)
(cherry picked from commit 59f1bb0a700a5b8d39ac56b76dc640a08fec86dc)
Victor Seva 11 лет назад
Родитель
Сommit
a61313c486
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      modules/json/Makefile
  2. 1 1
      modules/jsonrpc-c/Makefile

+ 1 - 1
modules/json/Makefile

@@ -14,7 +14,7 @@ BUILDER = $(shell which pkg-config)
 ifeq ($(BUILDER),)
 	JSONC=$(shell ls $(SYSBASE)/include/lib/libjson*.so $(LOCALBASE)/lib/libjson*.so 2>/dev/null | grep json-c)
 else
-	JSONC=$(shell pkg-config --libs json-c 2>/dev/null | grep json-c.so)
+	JSONC=$(shell pkg-config --libs json-c 2>/dev/null | grep json-c)
 endif
 
 ifneq ($(JSONC),)

+ 1 - 1
modules/jsonrpc-c/Makefile

@@ -14,7 +14,7 @@ BUILDER = $(shell which pkg-config)
 ifeq ($(BUILDER),)
 	JSONC=$(shell ls $(SYSBASE)/include/lib/libjson*.so $(LOCALBASE)/lib/libjson*.so 2>/dev/null | grep json-c)
 else
-	JSONC=$(shell pkg-config --libs json-c 2>/dev/null | grep json-c.so)
+	JSONC=$(shell pkg-config --libs json-c 2>/dev/null | grep json-c)
 endif
 
 ifneq ($(JSONC),)