Compare commits

...

5 commits

Author SHA1 Message Date
charles25565
0b095352b5
Merge 5c9dede575 into a000fd4b5e 2025-11-16 03:42:26 +05:30
Charles
5c9dede575 Use $(AR) 2025-11-15 22:12:13 +00:00
Charles
1f40535cec Also remove static library when cleaning 2025-11-15 22:12:13 +00:00
Charles
a22f5f911b Add an option to build a static library 2025-11-15 22:12:13 +00:00
charles25565
a000fd4b5e Bump minimum AOSP version to QPR1 2025-11-15 17:04:35 -05:00
2 changed files with 5 additions and 2 deletions

View file

@ -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 $@
@ -138,7 +141,7 @@ tidy:
clang-tidy --extra-arg=-std=c++17 $(filter %.cc,$(SOURCES)) -- $(CPPFLAGS)
clean:
rm -f $(OUT)/libhardened_malloc.so $(OBJECTS)
rm -f $(OUT)/libhardened_malloc.so $(OUT)/libhardened_malloc.a $(OBJECTS)
$(MAKE) -C test/ clean
test: $(OUT)/libhardened_malloc$(SUFFIX).so

View file

@ -83,7 +83,7 @@ there will be custom integration offering better performance in the future
along with other hardening for the C standard library implementation.
For Android, only the current generation, actively developed maintenance branch of the Android
Open Source Project will be supported, which currently means `android16-release`.
Open Source Project will be supported, which currently means `android16-qpr1-release`.
## Testing