Build magiskboot with crt0

This commit is contained in:
topjohnwu
2024-02-29 02:36:05 -08:00
parent b1297c4192
commit 24e46a5971
8 changed files with 61 additions and 31 deletions

View File

@@ -109,6 +109,12 @@ LOCAL_SRC_FILES := \
LOCAL_LDFLAGS := -static -T src/lto_fix.lds
ifdef B_CRT0
LOCAL_STATIC_LIBRARIES += crt0
LOCAL_CFLAGS += -DUSE_MUSL_PRINTF
LOCAL_LDFLAGS := -lm -Wl,--wrap=qsort
endif
include $(BUILD_EXECUTABLE)
endif