[sr-dev] git:5.4:b7cff8de: secsipid: Makefile - detect of pkg-config knows about libsecsipid

Victor Seva linuxmaniac at torreviejawireless.org
Mon Jan 11 09:49:51 CET 2021


Module: kamailio
Branch: 5.4
Commit: b7cff8de3b3d26b1120678fac331ca52424e6c01
URL: https://github.com/kamailio/kamailio/commit/b7cff8de3b3d26b1120678fac331ca52424e6c01

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2021-01-11T09:48:46+01:00

secsipid: Makefile - detect of pkg-config knows about libsecsipid

(cherry picked from commit 664542adf42a4d829ddf9b9e482aba81f30883d8)

---

Modified: src/modules/secsipid/Makefile

---

Diff:  https://github.com/kamailio/kamailio/commit/b7cff8de3b3d26b1120678fac331ca52424e6c01.diff
Patch: https://github.com/kamailio/kamailio/commit/b7cff8de3b3d26b1120678fac331ca52424e6c01.patch

---

diff --git a/src/modules/secsipid/Makefile b/src/modules/secsipid/Makefile
index 13012cd248..2b97061d31 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




More information about the sr-dev mailing list