mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-21 07:40:35 +00:00
Remove usage of patched static lib
This commit is contained in:
@@ -76,12 +76,13 @@ LOCAL_SRC_FILES := \
|
||||
init/selinux.cpp \
|
||||
init/init-rs.cpp
|
||||
|
||||
LOCAL_LDFLAGS := -static
|
||||
LOCAL_LDFLAGS := -static -T src/lto_fix.lds
|
||||
|
||||
ifdef B_CRT0
|
||||
# -lc -lm is hardcoded in this variable, disable it
|
||||
TARGET_LDLIBS :=
|
||||
LOCAL_STATIC_LIBRARIES += crt0
|
||||
LOCAL_LDFLAGS :=
|
||||
endif
|
||||
|
||||
include $(BUILD_EXECUTABLE)
|
||||
@@ -108,6 +109,8 @@ LOCAL_SRC_FILES := \
|
||||
boot/format.cpp \
|
||||
boot/boot-rs.cpp
|
||||
|
||||
LOCAL_LDFLAGS := -static -T src/lto_fix.lds
|
||||
|
||||
include $(BUILD_EXECUTABLE)
|
||||
|
||||
endif
|
||||
|
@@ -4,7 +4,7 @@ APP_CFLAGS := -Wall -Oz -fomit-frame-pointer -flto
|
||||
APP_LDFLAGS := -flto
|
||||
APP_CPPFLAGS := -std=c++20
|
||||
APP_STL := none
|
||||
APP_PLATFORM := android-26
|
||||
APP_PLATFORM := android-23
|
||||
APP_THIN_ARCHIVE := true
|
||||
APP_STRIP_MODE := none
|
||||
|
||||
|
Reference in New Issue
Block a user