From bdb958b7d41be7618920e4101847ca0051d4f54c Mon Sep 17 00:00:00 2001 From: Sergii Pylypenko Date: Sun, 9 Jan 2022 20:02:22 +0200 Subject: [PATCH] SuperFux: try to build with LTO --- project/jni/application/supertux/AndroidAppSettings.cfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project/jni/application/supertux/AndroidAppSettings.cfg b/project/jni/application/supertux/AndroidAppSettings.cfg index 2c0e57ad2..5e3d57e95 100644 --- a/project/jni/application/supertux/AndroidAppSettings.cfg +++ b/project/jni/application/supertux/AndroidAppSettings.cfg @@ -297,13 +297,13 @@ CompiledLibraries="c++_shared SDL2_image SDL2_ttf freetype harfbuzz glm boost_fi CustomBuildScript=n # Aditional CFLAGS for application -AppCflags='-DGLM_ENABLE_EXPERIMENTAL -DUSE_OPENGLES2 -DGL_PERFORMANCE_LOG -Ijni/openal/include/AL -Ijni/boost/include -frtti -fexceptions -Oz' +AppCflags='-DGLM_ENABLE_EXPERIMENTAL -DUSE_OPENGLES2 -Ijni/openal/include/AL -Ijni/boost/include -frtti -fexceptions -Oz -flto=thin' # Aditional C++-specific compiler flags for application, added after AppCflags AppCppflags='-std=c++14 -fno-strict-aliasing' # Additional LDFLAGS for application -AppLdflags='-frtti -fexceptions -Oz' +AppLdflags='-frtti -fexceptions -Oz -flto=thin' # If application has headers with the same name as system headers, this option tries to fix compiler flags to make it compilable AppOverlapsSystemHeaders=n @@ -315,7 +315,7 @@ AppSubdirsBuild='. supertux/src/* supertux/external/findlocale supertux/external AppBuildExclude='supertux/external/findlocale/example.c supertux/src/video/sdl supertux/external/SDL_SavePNG/main.c' # Application command line parameters, including app name as 0-th param -AppCmdline='./supertux2 --verbose --show-fps' +AppCmdline='./supertux2 --verbose --developer --show-fps' # Screen size is used by Google Play to prevent an app to be installed on devices with smaller screens # Minimum screen size that application supports: (s)mall / (m)edium / (l)arge