mirror of https://github.com/sipwise/kamailio.git
parent
cd10d847e1
commit
7f49eef44d
@ -0,0 +1,36 @@
|
||||
From b7cff8de3b3d26b1120678fac331ca52424e6c01 Mon Sep 17 00:00:00 2001
|
||||
From: Daniel-Constantin Mierla <miconda@gmail.com>
|
||||
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 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
|
||||
--
|
||||
2.20.1
|
||||
|
@ -0,0 +1,34 @@
|
||||
From 06bd17a8387008a3c7b797bd820a687ece5e3627 Mon Sep 17 00:00:00 2001
|
||||
From: Daniel-Constantin Mierla <miconda@gmail.com>
|
||||
Date: Fri, 8 Jan 2021 08:21:55 +0100
|
||||
Subject: [PATCH] secsipid: include secsipid.h from standard path
|
||||
|
||||
(cherry picked from commit c1a3443b09cee8a923f8801f8f3034f078034bf5)
|
||||
---
|
||||
src/modules/secsipid/secsipid_mod.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/modules/secsipid/secsipid_mod.c b/src/modules/secsipid/secsipid_mod.c
|
||||
index d3ad1c896e..efdb5ff50e 100644
|
||||
--- a/src/modules/secsipid/secsipid_mod.c
|
||||
+++ b/src/modules/secsipid/secsipid_mod.c
|
||||
@@ -25,14 +25,14 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
+#include <secsipid.h>
|
||||
+
|
||||
#include "../../core/sr_module.h"
|
||||
#include "../../core/dprint.h"
|
||||
#include "../../core/mod_fix.h"
|
||||
#include "../../core/data_lump.h"
|
||||
#include "../../core/kemi.h"
|
||||
|
||||
-#include "secsipid.h"
|
||||
-
|
||||
MODULE_VERSION
|
||||
|
||||
static int secsipid_expire = 300;
|
||||
--
|
||||
2.20.1
|
||||
|
@ -0,0 +1,34 @@
|
||||
From b0a629ef9b366f4946dd1e73ce4aed2e028c119b Mon Sep 17 00:00:00 2001
|
||||
From: Victor Seva <linuxmaniac@torreviejawireless.org>
|
||||
Date: Thu, 7 Jan 2021 11:14:53 +0100
|
||||
Subject: [PATCH] secsipid: use pkg-config when available
|
||||
|
||||
(cherry picked from commit 231a6eceeb67318cf4708a765b47df6c336350da)
|
||||
---
|
||||
src/modules/secsipid/Makefile | 10 ++++++++--
|
||||
1 file changed, 8 insertions(+), 2 deletions(-)
|
||||
|
||||
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
|
||||
--
|
||||
2.20.1
|
||||
|
Loading…
Reference in new issue