Cleanup libc hacks

This commit is contained in:
topjohnwu
2023-05-19 03:23:43 -07:00
parent 6ca2a3d841
commit 582cad1b8d
22 changed files with 17 additions and 82 deletions
+2 -2
View File
@@ -22,8 +22,8 @@ include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := libcompat
# Workaround "hacky" libc.a missing symbols
# To build Magisk with vanilla NDK, comment out the next line
# Add "hacky" libc.a missing symbols back
# All symbols in this library are weak, so a vanilla NDK should still link properly
LOCAL_SRC_FILES := compat/compat.cpp
# Fix static variables' ctor/dtor when using LTO
# See: https://github.com/android/ndk/issues/1461