Commit 9a767981 authored by José Fonseca's avatar José Fonseca

scons: Force C++ linkage.

We have some C++ code (LLVM), which must be linked with g++ on certain
platforms. SCons tries to guess when to use g++ by looking to the source files,
but this fails, if the C++ code is not list in the command line, but inside in
the library.
parent 13174c19
......@@ -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',):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment