Skip to content

Commit a22f5f9

Browse files
committed
Add an option to build a static library
1 parent a000fd4 commit a22f5f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ CPPFLAGS += \
110110
-DCONFIG_STATS=$(CONFIG_STATS) \
111111
-DCONFIG_SELF_INIT=$(CONFIG_SELF_INIT)
112112

113+
$(OUT)/libhardened_malloc$(SUFFIX).a: $(OBJECTS) | $(OUT)
114+
ar rcs $@ $^
115+
113116
$(OUT)/libhardened_malloc$(SUFFIX).so: $(OBJECTS) | $(OUT)
114117
$(CC) $(CFLAGS) $(LDFLAGS) -shared $^ $(LDLIBS) -o $@
115118

0 commit comments

Comments
 (0)