[Bf-committers] Compiling for Solaris with Sun CC, next round

Vladimír Marek vlmarek at volny.cz
Thu Aug 23 16:17:33 CEST 2007


> > SCons masters, is there some way to force usage of "c++ complier" for
> > linking ?
> >   
> Sure, you can set LINK to $CXX in a scons build environment, like
> env.Replace(LINK = '$CXX')
> It's probably set to $SMARTLINK ...i just can't tell you right now
> where exactly to put it in blender's scons scripts...somewhere in
> tools/Blender.py i'd assume.

Very good bet indeed :)

I did: 
diff -r 0f13483fa912 tools/Blender.py
--- a/tools/Blender.py  Thu Aug 23 14:15:17 2007 +0200
+++ b/tools/Blender.py  Thu Aug 23 16:15:03 2007 +0200
@@ -425,6 +425,8 @@ class BlenderEnvironment(SConsEnvironmen
         if  lenv['OURPLATFORM']=='sunos5':
             lenv.Append(LINKFLAGS = lenv['PLATFORM_LINKFLAGS'])
             lenv.Append(LINKFLAGS = lenv['BF_PYTHON_LINKFLAGS'])
+            if lenv['CXX'].endswith('CC'):
+                lenv.Replace(LINK = '$CXX')
         if  lenv['OURPLATFORM']=='darwin':
             lenv.Append(LINKFLAGS = lenv['PLATFORM_LINKFLAGS'])
             lenv.Append(LINKFLAGS = lenv['BF_PYTHON_LINKFLAGS'])

Do you feel that I might create bug for this? We might also want to
'support' CC on linux, however I guess that noone realy uses that.

Thanks

-- 
	Vlad


More information about the Bf-committers mailing list