This is patch: [#7129] Solaris build is linking with c instead of c++ compiler
authorKent Mein <mein@cs.umn.edu>
Thu, 6 Dec 2007 21:41:22 +0000 (21:41 +0000)
committerKent Mein <mein@cs.umn.edu>
Thu, 6 Dec 2007 21:41:22 +0000 (21:41 +0000)
I talked to Jesterking and he may switch this to a more global
solution later.  I figured in the meantime its ok to commit this
and consider the issue resolved.

Kent

tools/Blender.py

index 58f5ea7b661d2bcc75804819bbe40225a4306d3f..77262d6eaafbb64ecd12311c0092ff5d57d878b7 100644 (file)
@@ -430,6 +430,8 @@ class BlenderEnvironment(SConsEnvironment):
         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'])