targets/dri-i915: Force c++ linker in all cases
authorChí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
Mon, 6 May 2013 18:29:37 +0000 (20:29 +0200)
committerMatt Turner <mattst88@gmail.com>
Fri, 10 May 2013 00:04:27 +0000 (17:04 -0700)
NOTE: This is a candidate for the 9.1 branch.
Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=461696
Reviewed-by: Andreas Boll <andreas.boll.dev@gmail.com>
src/gallium/targets/dri-i915/Makefile.am

index f4f9030ebb6230b016a1ea3de21b2dd5a57f5cb4..ce6be788f3147a7d632fe85aa1a28a6c8dbacf73 100644 (file)
@@ -62,17 +62,11 @@ i915_dri_la_LIBADD = \
        $(GALLIUM_DRI_LIB_DEPS) \
        $(INTEL_LIBS)
 
-if HAVE_MESA_LLVM
-i915_dri_la_LINK = $(CXXLINK) $(i915_dri_la_LDFLAGS)
-# Mention a dummy pure C++ file to trigger generation of the $(LINK) variable
-nodist_EXTRA_i915_dri_la_SOURCES = dummy-cpp.cpp
+nodist_EXTRA_i915_dri_la_SOURCES = dummy.cpp
 
+if HAVE_MESA_LLVM
 AM_CPPFLAGS += -DGALLIUM_LLVMPIPE
 i915_dri_la_LIBADD += $(top_builddir)/src/gallium/drivers/llvmpipe/libllvmpipe.la $(LLVM_LIBS)
-else
-i915_dri_la_LINK = $(LINK) $(i915_dri_la_LDFLAGS)
-# Mention a dummy pure C file to trigger generation of the $(LINK) variable
-nodist_EXTRA_i915_dri_la_SOURCES = dummy-c.c
 endif
 
 # Provide compatibility with scripts for the old Mesa build system for