summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2008-03-04 18:28:23 +0100
committerMichel Dänzer <[email protected]>2008-03-04 18:28:23 +0100
commit72c9d4a660e5dd7e2bdb5ccb917388f138adae58 (patch)
tree96961b7ca611a5d6de0f074d04a1cb60b81ad0ec /SConstruct
parent9a7679811215a5cae2b4091f2fcda0a2faf4217d (diff)
gallium: Only use C++ compiler for linking when using LLVM.
Otherwise, the shared objects needlessly link against the C++ runtime environment.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct4
1 files changed, 1 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct
index dd118dfbb87..44ac0ad60d9 100644
--- a/SConstruct
+++ b/SConstruct
@@ -206,9 +206,7 @@ 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',):
+ # Force C++ linkage
env['LINK'] = env['CXX']
# libGL