Add runtime FORTIFY support

Gingerbread libc.a missing symbols
This commit is contained in:
topjohnwu
2022-01-31 01:49:37 -08:00
parent 70415a396a
commit 9fa096c6f4
3 changed files with 113 additions and 6 deletions

View File

@@ -11,12 +11,6 @@ ifndef B_SHARED
# Fix static variables' ctor/dtor when using LTO
# See: https://github.com/android/ndk/issues/1461
APP_LDFLAGS += -T jni/lto_fix.lds
ifneq ($(TARGET_ARCH),arm64)
ifneq ($(TARGET_ARCH),x86_64)
# Disable fortify on static 32-bit targets
APP_CFLAGS += -D_FORTIFY_SOURCE=0 -Wno-macro-redefined
endif
endif
endif
# Busybox should use stock libc.a