mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-08-21 17:10:46 +00:00
Set -fno-threadsafe-statics
for crt0
Since crt0 has no pthread support, we don't need lock for statics.
This commit is contained in:
@@ -24,7 +24,7 @@ endif
|
|||||||
ifdef B_CRT0
|
ifdef B_CRT0
|
||||||
|
|
||||||
# Disable all security and debugging features
|
# Disable all security and debugging features
|
||||||
APP_CFLAGS += -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-stack-protector -U_FORTIFY_SOURCE
|
APP_CFLAGS += -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-stack-protector -fno-threadsafe-statics -U_FORTIFY_SOURCE
|
||||||
# Override output folder to make sure all dependencies are rebuilt with new CFLAGS
|
# Override output folder to make sure all dependencies are rebuilt with new CFLAGS
|
||||||
NDK_APP_OUT := $(NDK_APP_OUT)-nolibc
|
NDK_APP_OUT := $(NDK_APP_OUT)-nolibc
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user