diff options
author | Michel Dänzer <[email protected]> | 2008-03-04 18:28:23 +0100 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2008-03-04 18:28:23 +0100 |
commit | 72c9d4a660e5dd7e2bdb5ccb917388f138adae58 (patch) | |
tree | 96961b7ca611a5d6de0f074d04a1cb60b81ad0ec | |
parent | 9a7679811215a5cae2b4091f2fcda0a2faf4217d (diff) |
gallium: Only use C++ compiler for linking when using LLVM.
Otherwise, the shared objects needlessly link against the C++ runtime
environment.
-rw-r--r-- | SConstruct | 4 |
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 |