mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-10-07 06:56:32 +02:00
Add an option to build a static library
This commit is contained in:
parent
e371736b17
commit
51e8ffe080
1 changed files with 3 additions and 0 deletions
3
Makefile
3
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 $@
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue