Now it fails due to: [ 97s] /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: /tmp/tests.EgwlFS.ltrans1.ltrans.o: in function `__wrap_GrabButton': [ 97s] /home/abuild/rpmbuild/BUILD/xserver-1.20.10/test/xi2/protocol-xipassivegrabdevice.c:72: undefined reference to `GrabButton' [ 97s] collect2: error: ld returned 1 exit status [ 97s] make[3]: *** [Makefile:1055: tests] Error 1 which is a -Wl,-wrap,GrabButton used in tests. -Wl,-wrap is not supported by LTO. A possible fix would be disabling of LTO in tests.