Module: kamailio
Branch: master
Commit: 664542adf42a4d829ddf9b9e482aba81f30883d8
URL:
https://github.com/kamailio/kamailio/commit/664542adf42a4d829ddf9b9e482aba8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/664542adf42a4d829ddf9b9e482aba8…
Patch:
https://github.com/kamailio/kamailio/commit/664542adf42a4d829ddf9b9e482aba8…
---
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