OSX/gcc-4.6: workaround a compilerbug, use apple-gcc instead
authorJens Verwiebe <info@jensverwiebe.de>
Thu, 7 Mar 2013 22:12:23 +0000 (22:12 +0000)
committerJens Verwiebe <info@jensverwiebe.de>
Thu, 7 Mar 2013 22:12:23 +0000 (22:12 +0000)
extern/bullet2/src/SConscript

index 8a3db17..3ffff9c 100644 (file)
@@ -35,4 +35,7 @@ bullet2_src += env.Glob("BulletSoftBody/*.cpp")
 
 incs = '. BulletCollision BulletDynamics LinearMath BulletSoftBody'
 
-env.BlenderLib ( libname = 'extern_bullet2', sources=bullet2_src, includes=Split(incs), defines=Split(defs), libtype=['extern','player'], priority=[20,137], compileflags=cflags )
+if sys.platform=='darwin' and env['CC'][:-2].endswith('4.6'): # workaround for an gcc-4.6 compiler bug
+       env.BlenderLib ( libname = 'extern_bullet2', sources=bullet2_src, includes=Split(incs), defines=Split(defs), libtype=['extern','player'], priority=[20,137], compileflags=cflags, cc_compilerchange='/usr/bin/gcc', cxx_compilerchange='/usr/bin/g++' )
+else:
+       env.BlenderLib ( libname = 'extern_bullet2', sources=bullet2_src, includes=Split(incs), defines=Split(defs), libtype=['extern','player'], priority=[20,137], compileflags=cflags )