gentooLTO
gentooLTO copied to clipboard
games-engines/scummvm-2.2.0 fails to build
fails with:
Checking endianness... unknown
* ERROR: games-engines/scummvm-2.2.0::gentoo failed (configure phase):
* (no error message)
it compiles fine with -flto
Scummvm builds fine with LTO. It does however fail to configure due to the usual rubbish endianness test. Bypass it (or maybe try adding "-shared") and its fine.
Ok, I found some time to try this out and you are right, it builds fine with LTO. As suggested I tried it out by adding -shared to the test with a small patch and it compilled fine. I'm including the patch in case it helps anyone lto_endianness_test_fix.patch