From b7cff8de3b3d26b1120678fac331ca52424e6c01 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Thu, 7 Jan 2021 17:34:36 +0100 Subject: [PATCH] secsipid: Makefile - detect of pkg-config knows about libsecsipid (cherry picked from commit 664542adf42a4d829ddf9b9e482aba81f30883d8) --- src/modules/secsipid/Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/modules/secsipid/Makefile b/src/modules/secsipid/Makefile index 13012cd2481..2b97061d310 100644 --- a/src/modules/secsipid/Makefile +++ b/src/modules/secsipid/Makefile @@ -7,7 +7,16 @@ include ../../Makefile.defs auto_gen= NAME=secsipid.so -BUILDER = $(shell which pkg-config) +ifeq ($(CROSS_COMPILE),) + BUILDER = $(shell which pkg-config) +ifneq ($(BUILDER),) + PKGLIBSECSIPID = $(shell $(BUILDER) --exists secsipid-1 > /dev/null 2>&1 ; echo $$? ) +ifneq ($(PKGLIBSECSIPID),0) + BUILDER = +endif +endif +endif + ifeq ($(BUILDER),) DEFS+= -I. LIBS = -L. -lsecsipid