mirror of
https://github.com/topjohnwu/Magisk.git
synced 2026-01-13 13:28:24 -08:00
17 lines
407 B
Makefile
17 lines
407 B
Makefile
LOCAL_PATH := $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := crt0
|
|
|
|
# Manually link the compiler runtime library
|
|
LOCAL_compiler_rt := $(shell $(TARGET_CC) -target $(LLVM_TRIPLE)$(TARGET_PLATFORM_LEVEL) --print-libgcc-file-name)
|
|
|
|
LOCAL_EXPORT_LDFLAGS := -static -nostartfiles -nodefaultlibs $(LOCAL_compiler_rt)
|
|
|
|
LOCAL_SRC_FILES := \
|
|
malloc.c \
|
|
nolibc.c \
|
|
syscall.c
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|