Building with LTO optimization causes GOB engine to be "ignored"

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

Post Reply
vanfanel
Posts: 19
Joined: Sat Dec 15, 2012 11:14 am

Building with LTO optimization causes GOB engine to be "ignored"

Post by vanfanel » Fri Feb 08, 2019 10:44 pm

Hi there,

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
However, it results on on a version of scummvm + plugins where the libgob (GOB engine) is ignored. The libgob.so file IS built, along with the rest of the engine plugins, but if I try to add a GOB engine game, it's not recognized.

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!

vanfanel
Posts: 19
Joined: Sat Dec 15, 2012 11:14 am

Re: Building with LTO optimization causes GOB engine to be "ignored"

Post by vanfanel » Sun Feb 10, 2019 3:26 pm

Seems to be related to plugin building, because building scummvm with engines built-in, GOB does work with LTO optimizations active.

Post Reply