From 51e8ffe08086132ebd3e1e4b5a65b20834332f0c Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 25 Sep 2025 15:10:44 -0400 Subject: [PATCH] Add an option to build a static library --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index f33f88e..c6d6db8 100644 --- a/Makefile +++ b/Makefile @@ -110,6 +110,9 @@ CPPFLAGS += \ -DCONFIG_STATS=$(CONFIG_STATS) \ -DCONFIG_SELF_INIT=$(CONFIG_SELF_INIT) +$(OUT)/libhardened_malloc$(SUFFIX).a: $(OBJECTS) | $(OUT) + ar rcs $@ $^ + $(OUT)/libhardened_malloc$(SUFFIX).so: $(OBJECTS) | $(OUT) $(CC) $(CFLAGS) $(LDFLAGS) -shared $^ $(LDLIBS) -o $@