From fec0b2e9118c16c83617916e03ce5bd48467c9db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 27 Feb 2026 17:21:21 +0100 Subject: [PATCH] Link against libcrypto when not using static openssl --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a48bdc4d..fc578a06 100644 --- a/Makefile +++ b/Makefile @@ -59,7 +59,9 @@ OBJECTS += $(patsubst %.cpp,$(BUILDDIR)/%.o,$(filter %.cpp,$(SOURCES))) LIBRARY = $(CODECS)/$(HOST)/$(PLATFORM)/libcodecs.a $(MDNS)/$(HOST)/$(PLATFORM)/libmdns.a -ifneq ($(STATIC),) +ifeq ($(STATIC),) +LDFLAGS += -lcrypto +else LIBRARY += $(OPENSSL)/libopenssl.a DEFINES += -DSSL_STATIC_LIB endif