From 13a98b699553c1c8331acaa40263c26251ea9520 Mon Sep 17 00:00:00 2001 From: maxisam <456807+maxisam@users.noreply.github.com.> Date: Wed, 13 Nov 2024 09:46:29 -0600 Subject: [PATCH] feat: Update Makefile for improved static linking on Windows --- Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index dea18d0..0c3f1e8 100644 --- a/Makefile +++ b/Makefile @@ -41,11 +41,9 @@ LDFLAGS += -lcrypto # $(OS) is typically 'Windows_NT' on Windows and empty or 'Linux' on Linux ifeq ($(OS),Windows_NT) # Windows-specific linker flags - LDFLAGS += -lws2_32 -lcrypt32 + LDFLAGS += -static-libstdc++ -static -lcrypto -lws2_32 -lcrypt32 else # Unix/Linux-specific linker flags - # You can add Unix-specific flags here if needed - # For example, linking against pthread: # LDFLAGS += -lpthread endif