gallium: Only use C++ compiler for linking when using LLVM.
authorMichel Dänzer <michel@tungstengraphics.com>
Tue, 4 Mar 2008 17:28:23 +0000 (18:28 +0100)
committerMichel Dänzer <michel@tungstengraphics.com>
Tue, 4 Mar 2008 17:28:23 +0000 (18:28 +0100)
Otherwise, the shared objects needlessly link against the C++ runtime
environment.

SConstruct

index dd118dfbb870b6c1a74694a3fb79ef64557707a7..44ac0ad60d929c28d12a5ca43b011b0e7cfab276 100644 (file)
@@ -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