Mesa (master): target/dri-swrast: fix for nonstandard LLVM prefix

Andreas Boll ab at kemper.freedesktop.org
Sun Jan 13 11:26:38 UTC 2013


Module: Mesa
Branch: master
Commit: 1b8adabe2e6cf1cffcb6cf41d0d10d219c814d84
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1b8adabe2e6cf1cffcb6cf41d0d10d219c814d84

Author: Nathan Schulte <nmschulte at gmail.com>
Date:   Sat Jan 12 19:42:04 2013 -0600

target/dri-swrast: fix for nonstandard LLVM prefix

Include LLVM_LDFLAGS when building with LLVM.  Fixes the following build
errors:
  CXXLD  swrast_dri.la
  /usr/bin/ld: cannot find -lLLVMR600CodeGen
  /usr/bin/ld: cannot find -lLLVMR600Desc
  /usr/bin/ld: cannot find -lLLVMR600Info
  /usr/bin/ld: cannot find -lLLVMR600AsmPrinter

Reviewed-by: Andreas Boll <andreas.boll.dev at gmail.com>

---

 src/gallium/targets/dri-swrast/Makefile.am |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/targets/dri-swrast/Makefile.am b/src/gallium/targets/dri-swrast/Makefile.am
index 62b5922..1104379 100644
--- a/src/gallium/targets/dri-swrast/Makefile.am
+++ b/src/gallium/targets/dri-swrast/Makefile.am
@@ -62,6 +62,7 @@ nodist_EXTRA_swrast_dri_la_SOURCES = dummy.cpp
 
 if HAVE_MESA_LLVM
 AM_CPPFLAGS += -DGALLIUM_LLVMPIPE
+swrast_dri_la_LDFLAGS += $(LLVM_LDFLAGS)
 swrast_dri_la_LIBADD += $(top_builddir)/src/gallium/drivers/llvmpipe/libllvmpipe.la $(LLVM_LIBS)
 endif
 




More information about the mesa-commit mailing list