Set -fno-threadsafe-statics for crt0

Since crt0 has no pthread support, we don't need lock for statics.
This commit is contained in:
LoveSy 2024-08-08 18:20:02 +08:00 committed by John Wu
parent 2d341863f5
commit 5a55483698

View File

@ -24,7 +24,7 @@ endif
ifdef B_CRT0
# 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
NDK_APP_OUT := $(NDK_APP_OUT)-nolibc