Hide Forgot
Created attachment 1594119 [details] Disable gcc -O2 optimisation Description of problem: The GOG linux games don't have a native run command, only a "run with compatibility layer" which then fails to launch the games. How reproducible: Known issue - see upstream bug linked. This appears to be caused by having any build optimisation enabled. Unfortunately '__global_compiler_flags' is hardcoded to -O2 and overrides any CFLAGS set manually to -O0. This can be overridden by redefining the macro however. I've run a quick test of the attached patch which ensures no optimisation is applied. With this patch the games launch correctly.
Yeah, i tested now and can reproduce this. The fun thing that i tested this in earlier builds and it works without this compatibility layer. Thank you for such informative bug report. Will try to test in now without -O2. You also suggesting bump to latest version in your patch, but i am not sure, maybe better staying on this first stable release: https://github.com/tkashkin/GameHub/releases/tag/0.14.2-1-master
FEDORA-2019-f0d066d230 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-f0d066d230
gamehub-0.14.2.1-3.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-f0d066d230
gamehub-0.14.2.1-3.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.