diff options
author | José Fonseca <jfonseca@vmware.com> | 2011-01-30 11:17:07 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2011-01-30 11:19:44 +0000 |
commit | 11b15c4d254ee689183306579d9c4851e29c3c4a (patch) | |
tree | f1a256d2e585087ac969abaeffc3063c25418c5a /scons/gallium.py | |
parent | cad0520179ef2a62b2756b01d37663f495a00619 (diff) |
scons: We have C++ in several libraries, so always link with the C++ compiler
Prevents missing symbols in libGL.so when LLVM is disabled.
Diffstat (limited to 'scons/gallium.py')
-rw-r--r-- | scons/gallium.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py index 75e9b9e7fc..df060f01a3 100644 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -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 = []) |