summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets
diff options
context:
space:
mode:
authorJohannes Obermayr <johannesobermayr@gmx.de>2013-01-11 06:06:33 +0100
committerAndreas Boll <andreas.boll.dev@gmail.com>2013-01-11 10:20:42 +0100
commitd98716233e3cc7ed18323a75ac274f70453ed442 (patch)
treefdb05146318238263aaf74f368088967df317508 /src/gallium/targets
parentbabab2876080af0fe65249dff559244aebd0b87e (diff)
downloadexternal_mesa3d-d98716233e3cc7ed18323a75ac274f70453ed442.zip
external_mesa3d-d98716233e3cc7ed18323a75ac274f70453ed442.tar.gz
external_mesa3d-d98716233e3cc7ed18323a75ac274f70453ed442.tar.bz2
targets/dri-swrast: Force c++ linker in all cases.
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=59226 Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Andreas Boll <andreas.boll.dev@gmail.com> Tested-by: Vinson Lee <vlee@freedesktop.org>
Diffstat (limited to 'src/gallium/targets')
-rw-r--r--src/gallium/targets/dri-swrast/Makefile.am10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/gallium/targets/dri-swrast/Makefile.am b/src/gallium/targets/dri-swrast/Makefile.am
index 82fcfd2..62b5922 100644
--- a/src/gallium/targets/dri-swrast/Makefile.am
+++ b/src/gallium/targets/dri-swrast/Makefile.am
@@ -58,17 +58,11 @@ swrast_dri_la_LIBADD = \
$(top_builddir)/src/gallium/drivers/rbug/librbug.la \
$(GALLIUM_DRI_LIB_DEPS)
-if HAVE_MESA_LLVM
-swrast_dri_la_LINK = $(CXXLINK) $(swrast_dri_la_LDFLAGS)
-# Mention a dummy pure C++ file to trigger generation of the $(LINK) variable
-nodist_EXTRA_swrast_dri_la_SOURCES = dummy-cpp.cpp
+nodist_EXTRA_swrast_dri_la_SOURCES = dummy.cpp
+if HAVE_MESA_LLVM
AM_CPPFLAGS += -DGALLIUM_LLVMPIPE
swrast_dri_la_LIBADD += $(top_builddir)/src/gallium/drivers/llvmpipe/libllvmpipe.la $(LLVM_LIBS)
-else
-swrast_dri_la_LINK = $(LINK) $(swrast_dri_la_LDFLAGS)
-# Mention a dummy pure C file to trigger generation of the $(LINK) variable
-nodist_EXTRA_swrast_dri_la_SOURCES = dummy-c.c
endif
# Provide compatibility with scripts for the old Mesa build system for