I usually build Scummvm with -lto flag for gcc and linker (CXXFLAGS and LDFLAGS).
In order to build, I have to do:
Code: Select all
CFLAGS="-flto" CXXFLAGS="-flto" LDFLAGS="-flto" AR="gcc-ar" NM="gcc-nm" RANLIB="gcc-ranlib" ./configure --disable-debug --enable-release --enable-optimizations --default-dynamic
Any idea on what's going on here, please? This is a mistery... No errors during build or run time.
LTO optimizations are good for small systems like the original Raspberry Pi.
Thanks!