message: only disable lto
diff: @@ -78,7 +78,7 @@ ifneq ($(REALM_ANDROID),)
  PROJECT_CFLAGS += -fPIC -DPIC
  # android.toolchain.cmake has `-fsigned-char` by default, we have to use the same
  # to avoid lto linking problems.
  - CFLAGS_OPTIM = -Os -DNDEBUG -fsigned-char -fvisibility=hidden
  + CFLAGS_OPTIM = -Os -ffunction-sections -fdata-sections -DNDEBUG -fsigned-char -fvisibility=hidden
  ifeq ($(ENABLE_ENCRYPTION),yes)
  PROJECT_CFLAGS += -I../../openssl/include
  endif
  