[sr-dev] git:5.6:87317235: tls: Makefile - link libdl dynamically

Daniel-Constantin Mierla miconda at gmail.com
Thu Jun 16 09:38:42 CEST 2022


Module: kamailio
Branch: 5.6
Commit: 873172351fae24ed8d74e9d5ce55a45f19b7bb01
URL: https://github.com/kamailio/kamailio/commit/873172351fae24ed8d74e9d5ce55a45f19b7bb01

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-06-16T09:36:01+02:00

tls: Makefile - link libdl dynamically

- libcrypto uses dlopen() and dlclose()
- GH #3115

(cherry picked from commit 9529730c478aef83c9b84c98242bf8af4bf152ad)

---

Modified: src/modules/tlsa/Makefile

---

Diff:  https://github.com/kamailio/kamailio/commit/873172351fae24ed8d74e9d5ce55a45f19b7bb01.diff
Patch: https://github.com/kamailio/kamailio/commit/873172351fae24ed8d74e9d5ce55a45f19b7bb01.patch

---

diff --git a/src/modules/tlsa/Makefile b/src/modules/tlsa/Makefile
index 9295898aadb..d97e8652137 100644
--- a/src/modules/tlsa/Makefile
+++ b/src/modules/tlsa/Makefile
@@ -39,7 +39,7 @@ ifneq ($(CRYPTO_BUILDER),)
 	LIBS += $(shell $(CRYPTO_BUILDER) --libs-only-L)
 endif # ifneq ($(CRYPTO_BUILDER),)
 
-	LIBS += -l:libssl.a -l:libcrypto.a -l:libz.a -l:libdl.a
+	LIBS += -l:libssl.a -l:libcrypto.a -l:libz.a -ldl
 	# TODO: explore use of LIBS += -Wl,-Bstatic $(shell $(SSL_BUILDER) --libs-only-l)
 
 else
@@ -53,7 +53,7 @@ else # ifneq ($(SSL_BUILDER),)
 	DEFS += -I$(LOCALBASE)/ssl/include
 	LIBS += -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib \
 			-L$(LOCALBASE)/lib64 -L$(LOCALBASE)/ssl/lib64 \
-			-l:libssl.a -l:libcrypto.a -l:libz.a -l:libdl.a
+			-l:libssl.a -l:libcrypto.a -l:libz.a -ldl
 endif # ifneq ($(SSL_BUILDER),)
 
 include ../../Makefile.modules




More information about the sr-dev mailing list