diff options
author | José Fonseca <jrfonseca@tungstengraphics.com> | 2008-03-04 12:40:18 +0100 |
---|---|---|
committer | José Fonseca <jrfonseca@tungstengraphics.com> | 2008-03-04 12:40:18 +0100 |
commit | e29b632f79e5c99e06736b0485dab7932b2b2d03 (patch) | |
tree | 758af565b2c5f1cdfda67e700b12ade9b666506a /SConstruct | |
parent | 8831a6f7eb0a078c8d29c90bdacf01f4bc63abb2 (diff) | |
download | mesa-demos-e29b632f79e5c99e06736b0485dab7932b2b2d03.tar.gz |
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
@@ -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',): |