[sr-dev] git:master:664542ad: secsipid: Makefile - detect of pkg-config knows about libsecsipid

Daniel-Constantin Mierla miconda at gmail.com
Sat Jan 9 15:04:56 CET 2021


Module: kamailio
Branch: master
Commit: 664542adf42a4d829ddf9b9e482aba81f30883d8
URL: https://github.com/kamailio/kamailio/commit/664542adf42a4d829ddf9b9e482aba81f30883d8

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-01-07T17:34:36+01:00

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

---

Modified: src/modules/secsipid/Makefile

---

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

---

diff --git a/src/modules/secsipid/Makefile b/src/modules/secsipid/Makefile
index 752c07c855..108659fd5e 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