summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-03-04 12:40:18 +0100
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-03-04 12:40:18 +0100
commite29b632f79e5c99e06736b0485dab7932b2b2d03 (patch)
tree758af565b2c5f1cdfda67e700b12ade9b666506a /SConstruct
parent8831a6f7eb0a078c8d29c90bdacf01f4bc63abb2 (diff)
downloadmesa-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--SConstruct5
1 files changed, 4 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 6f95d123..dd118dfb 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',):