Changing _lto_cflags won't work since ovmf doesn't take any cflags from OBS. To turn off the lto flags, you have to change the TOOL_CHAIN variable in the spec file from GCC5 to GCC49. On the other hand, the build failure seems only happening with the aarch64 cross-compiler. The x86_64 part is finished successfully.