Module: kamailio
Branch: 5.4
Commit: b0a629ef9b366f4946dd1e73ce4aed2e028c119b
URL:
https://github.com/kamailio/kamailio/commit/b0a629ef9b366f4946dd1e73ce4aed2…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2021-01-07T12:35:20+01:00
secsipid: use pkg-config when available
(cherry picked from commit 231a6eceeb67318cf4708a765b47df6c336350da)
---
Modified: src/modules/secsipid/Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/b0a629ef9b366f4946dd1e73ce4aed2…
Patch:
https://github.com/kamailio/kamailio/commit/b0a629ef9b366f4946dd1e73ce4aed2…
---
diff --git a/src/modules/secsipid/Makefile b/src/modules/secsipid/Makefile
index ec8ad07980..13012cd248 100644
--- a/src/modules/secsipid/Makefile
+++ b/src/modules/secsipid/Makefile
@@ -7,8 +7,14 @@ include ../../Makefile.defs
auto_gen=
NAME=secsipid.so
-DEFS+= -I.
-LIBS+= -L. -lsecsipid
+BUILDER = $(shell which pkg-config)
+ifeq ($(BUILDER),)
+ DEFS+= -I.
+ LIBS = -L. -lsecsipid
+else
+ DEFS+= $(shell pkg-config --cflags secsipid-1)
+ LIBS = $(shell pkg-config --libs secsipid-1)
+endif
ifeq ($(OS), darwin)
LIBS+= -framework CoreFoundation -framework Security -lpthread