SuperFux: try to build with LTO

This commit is contained in:
Sergii Pylypenko
2022-01-09 20:02:22 +02:00
parent 2f2a2b4fa4
commit bdb958b7d4

View File

@@ -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