targets/vdpau: Always use c++ to link
authorKusanagi Kouichi <slash@ac.auone-net.jp>
Wed, 12 Feb 2014 07:07:55 +0000 (16:07 +0900)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 17 Feb 2014 21:14:16 +0000 (21:14 +0000)
If built without llvm, the following error occurs with mplayer:

Failed to open VDPAU backend .../libvdpau_r600.so: undefined symbol: _ZTVN10__cxxabiv117__class_type_infoE
[vo/vdpau] Error when calling vdp_device_create_x11: 1

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/targets/r600/vdpau/Makefile.am

index 7f43fbb187ff7fda559a4c7fffa87c51f8fbcbc8..6e9f1174c9d70c294d5078c103ab51994bc7cdc2 100644 (file)
@@ -44,17 +44,13 @@ libvdpau_r600_la_LIBADD = \
        $(GALLIUM_DRI_LIB_DEPS) \
        $(RADEON_LIBS)
 
-if HAVE_MESA_LLVM
 libvdpau_r600_la_LINK = $(CXXLINK) $(libvdpau_r600_la_LDFLAGS)
 # Mention a dummy pure C++ file to trigger generation of the $(LINK) variable
 nodist_EXTRA_libvdpau_r600_la_SOURCES = dummy-cpp.cpp
 
+if HAVE_MESA_LLVM
 libvdpau_r600_la_LDFLAGS += $(LLVM_LDFLAGS)
 libvdpau_r600_la_LIBADD += $(LLVM_LIBS)
-else
-libvdpau_r600_la_LINK = $(LINK) $(libvdpau_r600_la_LDFLAGS)
-# Mention a dummy pure C file to trigger generation of the $(LINK) variable
-nodist_EXTRA_libvdpau_r600_la_SOURCES = dummy-c.c
 endif
 
 # Provide compatibility with scripts for the old Mesa build system for