From 4c9119bb626147c16a62d2f6cb64e4df7477f21f Mon Sep 17 00:00:00 2001 From: m-doescode <80221594+m-doescode@users.noreply.github.com> Date: Tue, 3 May 2022 21:20:11 +0100 Subject: [PATCH] Makefile | Added static linking of libgcc and libstdc++ --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fff35c9..856221b 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ CXX = clang++ LIBS = INCLUDES = include MACROS = UNICODE -CXXFLAGS = -std=c++2b -Wall -Wextra -fexceptions -fuse-ld=lld $(addprefix -l,$(LIBS)) $(addprefix -I,$(INCLUDES)) $(addprefix -D,$(MACROS)) +CXXFLAGS = -static-libgcc -static-libstdc++ -std=c++2b -Wall -Wextra -fexceptions -fuse-ld=lld $(addprefix -l,$(LIBS)) $(addprefix -I,$(INCLUDES)) $(addprefix -D,$(MACROS)) LDFLAGS = -lm SRCDIR = src