aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8c3be66..66092f8 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,9 @@ TARGET = $(BUILD)/ccshell
CPPFLAGS = -I$(INCLUDE_DIR) -MMD -MP
CXXFLAGS = -std=c++23 -Wall -Wextra -O2
+# static
+LDFLAGS += -static -static-libgcc -static-libstdc++
+
SRCS = $(shell find $(SRC_DIR) -name '*.cc')
OBJS = $(SRCS:%=$(BUILD)/%.o)
DEPS = $(OBJS:.o=.d)