diff --git a/packages/graphics/Mesa/patches/Mesa-7.10.2-llvm_so.patch b/packages/graphics/Mesa/patches/Mesa-7.10.2-llvm_so.patch new file mode 100644 index 0000000000..8a924662ca --- /dev/null +++ b/packages/graphics/Mesa/patches/Mesa-7.10.2-llvm_so.patch @@ -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" diff --git a/packages/graphics/Mesa/patches/Mesa-7.10.2-llvmpipe_ld.patch b/packages/graphics/Mesa/patches/Mesa-7.10.2-llvmpipe_ld.patch new file mode 100644 index 0000000000..1fa972db2e --- /dev/null +++ b/packages/graphics/Mesa/patches/Mesa-7.10.2-llvmpipe_ld.patch @@ -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 +