Pārlūkot izejas kodu

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

Victor Seva 11 gadi atpakaļ
vecāks
revīzija
c290e58b7f
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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),)
 ifeq ($(BUILDER),)
 	JSONC=$(shell ls $(SYSBASE)/include/lib/libjson*.so $(LOCALBASE)/lib/libjson*.so 2>/dev/null | grep json-c)
 	JSONC=$(shell ls $(SYSBASE)/include/lib/libjson*.so $(LOCALBASE)/lib/libjson*.so 2>/dev/null | grep json-c)
 else
 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
 endif
 
 
 ifneq ($(JSONC),)
 ifneq ($(JSONC),)

+ 1 - 1
modules/jsonrpc-c/Makefile

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