Mesa (master): targets: Link xorg drivers with LLVM if built
Jakob Bornecrantz
wallbraker at kemper.freedesktop.org
Tue Jul 13 15:24:35 UTC 2010
Module: Mesa
Branch: master
Commit: 04453a32b49a57fbf72319b045f71761c998f7b3
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=04453a32b49a57fbf72319b045f71761c998f7b3
Author: Jakob Bornecrantz <wallbraker at gmail.com>
Date: Tue Jul 13 07:44:37 2010 -0700
targets: Link xorg drivers with LLVM if built
---
src/gallium/targets/Makefile.xorg | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/gallium/targets/Makefile.xorg b/src/gallium/targets/Makefile.xorg
index cfbc5b4..c2d0064 100644
--- a/src/gallium/targets/Makefile.xorg
+++ b/src/gallium/targets/Makefile.xorg
@@ -28,6 +28,14 @@ INCLUDES = \
LIBNAME_STAGING = $(TOP)/$(LIB_DIR)/gallium/$(TARGET)
+ifeq ($(MESA_LLVM),1)
+LD = g++
+LDFLAGS += $(LLVM_LDFLAGS)
+USE_CXX=1
+DRIVER_PIPES += $(TOP)/src/gallium/drivers/llvmpipe/libllvmpipe.a
+DRIVER_LINKS += $(LLVM_LIBS) -lm -ldl
+endif
+
##### TARGETS #####
More information about the mesa-commit
mailing list