mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
Mesa: add patches for building with llvm support
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
b0424af78c
commit
189db4b68b
12
packages/graphics/Mesa/patches/Mesa-7.10.2-llvm_so.patch
Normal file
12
packages/graphics/Mesa/patches/Mesa-7.10.2-llvm_so.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -Naur Mesa-7.10.2-old/configure.ac Mesa-7.10.2-new/configure.ac
|
||||
--- Mesa-7.10.2-old/configure.ac 2011-02-11 14:49:47.000000000 -0800
|
||||
+++ Mesa-7.10.2-new/configure.ac 2011-05-05 16:31:18.000000000 -0700
|
||||
@@ -1551,7 +1551,7 @@
|
||||
if test "x$LLVM_CONFIG" != xno; then
|
||||
LLVM_VERSION=`$LLVM_CONFIG --version`
|
||||
LLVM_CFLAGS=`$LLVM_CONFIG --cppflags`
|
||||
- LLVM_LIBS="`$LLVM_CONFIG --libs jit interpreter nativecodegen bitwriter` -lstdc++"
|
||||
+ LLVM_LIBS="-lLLVM-$LLVM_VERSION -lstdc++"
|
||||
|
||||
if test "x$HAS_UDIS86" != xno; then
|
||||
LLVM_LIBS="$LLVM_LIBS -ludis86"
|
12
packages/graphics/Mesa/patches/Mesa-7.10.2-llvmpipe_ld.patch
Normal file
12
packages/graphics/Mesa/patches/Mesa-7.10.2-llvmpipe_ld.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -Naur Mesa-7.10.2-old/src/gallium/drivers/llvmpipe/Makefile Mesa-7.10.2-new/src/gallium/drivers/llvmpipe/Makefile
|
||||
--- Mesa-7.10.2-old/src/gallium/drivers/llvmpipe/Makefile 2011-01-04 09:44:17.000000000 -0800
|
||||
+++ Mesa-7.10.2-new/src/gallium/drivers/llvmpipe/Makefile 2011-05-05 15:48:06.000000000 -0700
|
||||
@@ -71,7 +71,7 @@
|
||||
|
||||
LDFLAGS += $(LLVM_LDFLAGS)
|
||||
LIBS += -L../../auxiliary/ -lgallium libllvmpipe.a $(LLVM_LIBS) $(GL_LIB_DEPS)
|
||||
-LD=g++
|
||||
+LD = $(CXX)
|
||||
|
||||
$(PROGS): lp_test_main.o libllvmpipe.a
|
||||
|
Loading…
x
Reference in New Issue
Block a user