summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/xorg-nouveau
diff options
context:
space:
mode:
authorMarcin Slusarz <marcin.slusarz@gmail.com>2011-10-13 21:45:45 +0200
committerMarcin Slusarz <marcin.slusarz@gmail.com>2011-10-17 22:57:27 +0200
commit757390491cfa3b861fab76940a8c6e508d1f1a25 (patch)
treea69fb54b0b227d8131cd057f653dbc61d1113ae2 /src/gallium/targets/xorg-nouveau
parentc0573fb29df6defe58f4898f0b8a42e8b9214d36 (diff)
downloadexternal_mesa3d-757390491cfa3b861fab76940a8c6e508d1f1a25.zip
external_mesa3d-757390491cfa3b861fab76940a8c6e508d1f1a25.tar.gz
external_mesa3d-757390491cfa3b861fab76940a8c6e508d1f1a25.tar.bz2
gallium/targets: use c++ compiler for linking
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.
Diffstat (limited to 'src/gallium/targets/xorg-nouveau')
-rw-r--r--src/gallium/targets/xorg-nouveau/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/targets/xorg-nouveau/Makefile b/src/gallium/targets/xorg-nouveau/Makefile
index cb4ae49..72899db 100644
--- a/src/gallium/targets/xorg-nouveau/Makefile
+++ b/src/gallium/targets/xorg-nouveau/Makefile
@@ -26,4 +26,6 @@ DRIVER_LINKS = \
DRIVER_INCLUDES = \
$(shell $(PKG_CONFIG) --cflags-only-I libdrm libdrm_nouveau xf86driproto)
+LINK_WITH_CXX=1
+
include ../Makefile.xorg