target/dri-swrast: fix for nonstandard LLVM prefix
authorNathan Schulte <nmschulte@gmail.com>
Sun, 13 Jan 2013 01:42:04 +0000 (19:42 -0600)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Sun, 13 Jan 2013 11:22:15 +0000 (12:22 +0100)
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@gmail.com>
src/gallium/targets/dri-swrast/Makefile.am

index 62b592203b72d67bda528e1b3d80b9771b58d8f5..1104379e1d9a02d82d286efe19294f8fa9f140d6 100644 (file)
@@ -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