From 2dac330ac0f57d98fa5116c2ceb8e79231edd35a Mon Sep 17 00:00:00 2001 From: Martin Poirier Date: Mon, 23 Nov 2009 17:12:15 +0000 Subject: [PATCH] Remove forced sse compile flags on render for linux. This is very bad. Use user flags instead. --- source/blender/render/SConscript | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/blender/render/SConscript b/source/blender/render/SConscript index 795e7247597..63ef83a0cfe 100644 --- a/source/blender/render/SConscript +++ b/source/blender/render/SConscript @@ -31,8 +31,11 @@ if env['WITH_BF_OPENEXR']: defs.append('WITH_OPENEXR') if env['OURPLATFORM'] == 'linux2': - cflags = ['-O2','-msse2','-mfpmath=sse', '-pthread'] - cxxflags = ['-O2','-msse2','-mfpmath=sse', '-pthread'] +# SSE is NOT safe all the time on linux, plus that ignores users compile flags and therefore no no +# cflags = ['-O2','-msse2','-mfpmath=sse', '-pthread'] +# cxxflags = ['-O2','-msse2','-mfpmath=sse', '-pthread'] + cflags = env['CCFLAGS'] + cxxflags = env['CXXFLAGS'] incs += ' ../../../extern/binreloc/include' if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):