Control: tags -1 patch On 21.03.2014 22:26, Jesse Smith wrote: > So far I have not been able to reproduce the bug, however I suspect I > know what the problem is. The Sopwith makefile includes a flag for > optimization (-O2). Recent versions of the GCC compiler (version 4.7, > 4.8) have changed the way code gets optimized and I have seen it cause a > couple of games to crash at start-up.
Thank you very much for your quick response. You are right, the optimization is causing this problem. On Debian -O2 is the default optimization flag and gcc 4.8 still the default compiler. With your Makefile and without any additional compiler flags, I can't reproduce a crash either. The solution for Debian is to add this line to debian/rules: export DEB_BUILD_OPTIONS=noopt and sopwith will be built with -O0 optimization. I can confirm that this solves the issue. Regards, Markus
From 4cbe01514c2f23d790a99c5bf93af12c4df9b9af Mon Sep 17 00:00:00 2001 From: Markus Koschany <a...@gambaru.de> Date: Fri, 21 Mar 2014 23:11:40 +0100 Subject: [PATCH] noopt --- debian/rules | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/rules b/debian/rules index 58070e9..862987c 100755 --- a/debian/rules +++ b/debian/rules @@ -2,6 +2,7 @@ # Set to enable verbose output from debhelper #export DH_VERBOSE=1 +export DEB_BUILD_OPTIONS=noopt install_dir = $(CURDIR)/debian/tmp -- 1.9.1
signature.asc
Description: OpenPGP digital signature