From 72c9d4a660e5dd7e2bdb5ccb917388f138adae58 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michel=20D=C3=A4nzer?= Date: Tue, 4 Mar 2008 18:28:23 +0100 Subject: [PATCH] gallium: Only use C++ compiler for linking when using LLVM. Otherwise, the shared objects needlessly link against the C++ runtime environment. --- SConstruct | 4 +--- 1 file changed, 1 insertion(+), 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 -- 2.30.2