summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct5
1 files changed, 4 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 6f95d123ff..dd118dfbb8 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',):