package cheesetracker
tags 385968 patch
thanks

The problem seems to come from GCC 4 optimizations, and part of the module loader where read data is converted to float using pointer casts. The fix is to enable
-fno-strict-aliasing, so those casts won't be optimized incorrectly.

Patch included.

--- cheesetracker-0.9.9-5/SConstruct    2006-09-08 15:33:58.000000000 +0300
+++ cheesetracker-0.9.9-4/SConstruct    2006-10-02 14:54:02.871647792 +0300
@@ -87,7 +87,7 @@
env.optimize_resampler_hack=0

if (env['optimize']):
-       env.Append(CXXFLAGS=['-O3','-ffast-math']);
+       env.Append(CXXFLAGS=['-O3','-ffast-math', '-fno-strict-aliasing']);
       env.optimize_resampler_hack=0

profile=0;


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to