Mesa (gallium-0.2): gallivm: Explicitly specify the LLVM components we need .

Michel Dänzer daenzer at kemper.freedesktop.org
Mon Jan 12 11:48:36 UTC 2009


Module: Mesa
Branch: gallium-0.2
Commit: 359bbe7432babb328a313756b9d1e46e187914b8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=359bbe7432babb328a313756b9d1e46e187914b8

Author: Michel Dänzer <daenzer at vmware.com>
Date:   Mon Jan 12 12:37:13 2009 +0100

gallivm: Explicitly specify the LLVM components we need.

---

 SConstruct         |    2 +-
 configs/linux-llvm |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/SConstruct b/SConstruct
index 8c96817..baa0f90 100644
--- a/SConstruct
+++ b/SConstruct
@@ -133,7 +133,7 @@ if dri:
 # LLVM
 if llvm:
 	# See also http://www.scons.org/wiki/UsingPkgConfig
-	env.ParseConfig('llvm-config --cflags --ldflags --libs')
+	env.ParseConfig('llvm-config --cflags --ldflags --libs backend bitreader engine ipo')
 	env.Append(CPPDEFINES = ['MESA_LLVM'])
         # Force C++ linkage
 	env['LINK'] = env['CXX']
diff --git a/configs/linux-llvm b/configs/linux-llvm
index 489cfd0..a9d7405 100644
--- a/configs/linux-llvm
+++ b/configs/linux-llvm
@@ -22,9 +22,9 @@ endif
 
 ifeq ($(MESA_LLVM),1)
 #  LLVM_CFLAGS=`llvm-config --cflags`
-  LLVM_CXXFLAGS=`llvm-config --cxxflags` -Wno-long-long
-  LLVM_LDFLAGS=`llvm-config --ldflags`
-  LLVM_LIBS=`llvm-config --libs`
+  LLVM_CXXFLAGS=`llvm-config --cxxflags backend bitreader engine ipo` -Wno-long-long
+  LLVM_LDFLAGS=`llvm-config --ldflags backend bitreader engine ipo`
+  LLVM_LIBS=`llvm-config --libs backend bitreader engine ipo`
   MKLIB_OPTIONS=-cplusplus
 else
   LLVM_CFLAGS=




More information about the mesa-commit mailing list