From: Michel Dänzer Date: Tue, 4 Mar 2008 17:28:23 +0000 (+0100) Subject: gallium: Only use C++ compiler for linking when using LLVM. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=72c9d4a660e5dd7e2bdb5ccb917388f138adae58;p=mesa.git gallium: Only use C++ compiler for linking when using LLVM. Otherwise, the shared objects needlessly link against the C++ runtime environment. --- 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