From 757390491cfa3b861fab76940a8c6e508d1f1a25 Mon Sep 17 00:00:00 2001 From: Marcin Slusarz Date: Thu, 13 Oct 2011 21:45:45 +0200 Subject: gallium/targets: use c++ compiler for linking MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As pointed out by Michel Dänzer, gcc -lstdc++ doesn't work on all systems, because it may require other libraries which are only pulled in implicitly by g++. And libstdc++ is available only with GNU compiler. Use c++ compiler for linking and remove redundant LDFLAGS += -lstdc++ all over the tree. --- src/gallium/targets/xvmc-nouveau/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/targets/xvmc-nouveau/Makefile') diff --git a/src/gallium/targets/xvmc-nouveau/Makefile b/src/gallium/targets/xvmc-nouveau/Makefile index cc1886415c1..67036ee5090 100644 --- a/src/gallium/targets/xvmc-nouveau/Makefile +++ b/src/gallium/targets/xvmc-nouveau/Makefile @@ -21,6 +21,8 @@ C_SOURCES = \ DRIVER_LIBS = $(shell $(PKG_CONFIG) libdrm_nouveau --libs) -lXfixes +LINK_WITH_CXX=1 + include ../Makefile.xvmc symlinks: -- cgit v1.2.3