[sr-dev] git:master:3e345291: secsipid_proc: link always against -lpthread

Daniel-Constantin Mierla miconda at gmail.com
Mon Feb 15 10:32:02 CET 2021


Module: kamailio
Branch: master
Commit: 3e345291c0e9474ed0196b0ab0528e0f6744fbe0
URL: https://github.com/kamailio/kamailio/commit/3e345291c0e9474ed0196b0ab0528e0f6744fbe0

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-02-15T10:31:48+01:00

secsipid_proc: link always against -lpthread

- being loaded on child init may not benefit of core -lphtread in some
OSes

---

Modified: src/modules/secsipid_proc/Makefile

---

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

---

diff --git a/src/modules/secsipid_proc/Makefile b/src/modules/secsipid_proc/Makefile
index 766ce4a190..259766b151 100644
--- a/src/modules/secsipid_proc/Makefile
+++ b/src/modules/secsipid_proc/Makefile
@@ -19,14 +19,14 @@ endif
 
 ifeq ($(BUILDER),)
 	DEFS+= -I.
-	LIBS = -L. -lsecsipid
+	LIBS = -L. -lsecsipid -lpthread
 else
 	DEFS+= $(shell pkg-config --cflags secsipid-1)
-	LIBS = $(shell pkg-config --libs secsipid-1)
+	LIBS = $(shell pkg-config --libs secsipid-1) -lpthread
 endif
 
 ifeq ($(OS), darwin)
-LIBS+= -framework CoreFoundation -framework Security -lpthread
+LIBS+= -framework CoreFoundation -framework Security
 endif
 
 include ../../Makefile.modules




More information about the sr-dev mailing list