Module: kamailio
Branch: master
Commit: 9529730c478aef83c9b84c98242bf8af4bf152ad
URL:
https://github.com/kamailio/kamailio/commit/9529730c478aef83c9b84c98242bf8a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/9529730c478aef83c9b84c98242bf8a…
Patch:
https://github.com/kamailio/kamailio/commit/9529730c478aef83c9b84c98242bf8a…
---
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