scons: We have C++ in several libraries, so always link with the C++ compiler

Prevents missing symbols in libGL.so when LLVM is disabled.
This commit is contained in:
José Fonseca 2011-01-30 11:17:07 +00:00
parent cad0520179
commit 11b15c4d25
2 changed files with 4 additions and 2 deletions

View File

@ -551,6 +551,10 @@ def generate(env):
env.Append(LINKFLAGS = linkflags)
env.Append(SHLINKFLAGS = shlinkflags)
# We have C++ in several libraries, so always link with the C++ compiler
if env['gcc']:
env['LINK'] = env['CXX']
# Default libs
env.Append(LIBS = [])

View File

@ -147,8 +147,6 @@ def generate(env):
except OSError:
print 'scons: llvm-config version %s failed' % llvm_version
return
else:
env['LINK'] = env['CXX']
assert llvm_version is not None
env['llvm'] = True