[sr-dev] git:master:9529730c: tls: Makefile - link libdl dynamically

Daniel-Constantin Mierla miconda at gmail.com
Wed Jun 15 11:38:26 CEST 2022


Module: kamailio
Branch: master
Commit: 9529730c478aef83c9b84c98242bf8af4bf152ad
URL: https://github.com/kamailio/kamailio/commit/9529730c478aef83c9b84c98242bf8af4bf152ad

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-06-15T11:38:19+02:00

tls: Makefile - link libdl dynamically

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

---

Modified: src/modules/tlsa/Makefile

---

Diff:  https://github.com/kamailio/kamailio/commit/9529730c478aef83c9b84c98242bf8af4bf152ad.diff
Patch: https://github.com/kamailio/kamailio/commit/9529730c478aef83c9b84c98242bf8af4bf152ad.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