From: José Fonseca Date: Wed, 9 Sep 2009 20:45:08 +0000 (+0100) Subject: scons: Pass -mstackrealign option to gcc. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b0b131b023ed3d31fa77cfcd5f9b82f2997c78c7;p=mesa.git scons: Pass -mstackrealign option to gcc. It is impossible to have gcc generate SSE code without it, as thirdparty applications often call us with an unaligned stack pointer. --- diff --git a/scons/gallium.py b/scons/gallium.py index bf6172b4d77..47b07744be9 100644 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -340,6 +340,7 @@ def generate(env): '-m32', #'-march=pentium4', '-mmmx', '-msse', '-msse2', # enable SIMD intrinsics + '-mstackrealign', # ensure stack is aligned -- do not enabled -msse without it! #'-mfpmath=sse', ] if env['machine'] == 'x86_64':