diff options
author | José Fonseca <[email protected]> | 2008-03-04 12:40:18 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-03-04 12:40:18 +0100 |
commit | 9a7679811215a5cae2b4091f2fcda0a2faf4217d (patch) | |
tree | d62af9e1ead530378c2f177f713053f56689f49d /SConstruct | |
parent | 13174c195e057f443b23df788ea0c10251942189 (diff) |
scons: Force C++ linkage.
We have some C++ code (LLVM), which must be linked with g++ on certain
platforms. SCons tries to guess when to use g++ by looking to the source files,
but this fails, if the C++ code is not list in the command line, but inside in
the library.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct index 6f95d123ff2..dd118dfbb87 100644 --- a/SConstruct +++ b/SConstruct @@ -206,7 +206,10 @@ if llvm: env.ParseConfig('llvm-config --cflags --ldflags --libs') env.Append(CPPDEFINES = ['MESA_LLVM']) env.Append(CXXFLAGS = ['-Wno-long-long']) - + +# Force C++ linkage +if env['PLATFORM'] in ('posix',): + env['LINK'] = env['CXX'] # libGL if platform not in ('winddk',): |