targets: Link xorg drivers with LLVM if built
authorJakob Bornecrantz <wallbraker@gmail.com>
Tue, 13 Jul 2010 14:44:37 +0000 (07:44 -0700)
committerJakob Bornecrantz <wallbraker@gmail.com>
Tue, 13 Jul 2010 14:49:00 +0000 (07:49 -0700)
src/gallium/targets/Makefile.xorg

index cfbc5b47c055f44ad9266377def47af60efe343a..c2d00649789f11284760a6d1bbcc1fd3a6f3444b 100644 (file)
@@ -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 #####