svga: always link with C++
authorBrian Paul <brianp@vmware.com>
Fri, 1 Mar 2013 23:53:22 +0000 (16:53 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 2 Mar 2013 00:31:32 +0000 (17:31 -0700)
Even when we don't have LLVM since there's other C++ code
in the resulting DRI driver object.

Note: This is a candidate for the stable branches.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/gallium/targets/dri-vmwgfx/Makefile.am

index 06ebf8872cc657ce83d690fe26d61ba88687c03c..ca7df65ada8c13095ad41bce1e0e30099cb6304e 100644 (file)
@@ -58,17 +58,13 @@ vmwgfx_dri_la_LIBADD = \
        $(top_builddir)/src/gallium/drivers/svga/libsvga.la \
        $(GALLIUM_DRI_LIB_DEPS)
 
-if HAVE_MESA_LLVM
 vmwgfx_dri_la_LINK = $(CXXLINK) $(vmwgfx_dri_la_LDFLAGS)
 # Mention a dummy pure C++ file to trigger generation of the $(LINK) variable
 nodist_EXTRA_vmwgfx_dri_la_SOURCES = dummy-cpp.cpp
 
+if HAVE_MESA_LLVM
 vmwgfx_dri_la_LDFLAGS += $(LLVM_LDFLAGS)
 vmwgfx_dri_la_LIBADD += $(LLVM_LIBS)
-else
-vmwgfx_dri_la_LINK = $(LINK) $(vmwgfx_dri_la_LDFLAGS)
-# Mention a dummy pure C file to trigger generation of the $(LINK) variable
-nodist_EXTRA_vmwgfx_dri_la_SOURCES = dummy-c.c
 endif
 
 # Provide compatibility with scripts for the old Mesa build system for