From 2b6b106e57abf4645f6a79c3cb1278398745b99c Mon Sep 17 00:00:00 2001 From: quetta-1030 Date: Sun, 8 Mar 2026 09:56:49 +0800 Subject: [PATCH] fix: add -lcrypto to ltls.so link flags (#2143) Fix missing -lcrypto linker flag when building ltls.so. Without libcrypto, TLS handshake may fail with OpenSSL 3.x. Fixes #2099 Co-authored-by: pentta1e30 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3e9cbd44..f2f8b462 100644 --- a/Makefile +++ b/Makefile @@ -113,7 +113,7 @@ $(LUA_CLIB_PATH)/sproto.so : lualib-src/sproto/sproto.c lualib-src/sproto/lsprot $(CC) $(CFLAGS) $(SHARED) -Ilualib-src/sproto $^ -o $@ $(LUA_CLIB_PATH)/ltls.so : lualib-src/ltls.c | $(LUA_CLIB_PATH) - $(CC) $(CFLAGS) $(SHARED) -Iskynet-src -L$(TLS_LIB) -I$(TLS_INC) $^ -o $@ -lssl + $(CC) $(CFLAGS) $(SHARED) -Iskynet-src -L$(TLS_LIB) -I$(TLS_INC) $^ -o $@ -lssl -lcrypto $(LUA_CLIB_PATH)/lpeg.so : 3rd/lpeg/lpcap.c 3rd/lpeg/lpcode.c 3rd/lpeg/lpprint.c 3rd/lpeg/lptree.c 3rd/lpeg/lpvm.c 3rd/lpeg/lpcset.c | $(LUA_CLIB_PATH) $(CC) $(CFLAGS) $(SHARED) -I3rd/lpeg $^ -o $@