[Mesa-dev] Mesa (master): st/xorg: fix build without LLVM
Michel Dänzer
michel at daenzer.net
Thu Oct 13 10:54:32 PDT 2011
On Don, 2011-10-13 at 10:03 -0700, Marcin XXlusarz wrote:
> Module: Mesa
> Branch: master
> Commit: 349e4db99e938f8ee8826b0d27e490c66a1e8356
> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=349e4db99e938f8ee8826b0d27e490c66a1e8356
>
> Author: Marcin Slusarz <marcin.slusarz at gmail.com>
> Date: Thu Oct 13 18:44:40 2011 +0200
>
> st/xorg: fix build without LLVM
>
> ---
>
> src/gallium/targets/Makefile.xorg | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/src/gallium/targets/Makefile.xorg b/src/gallium/targets/Makefile.xorg
> index 9269375..c96eded 100644
> --- a/src/gallium/targets/Makefile.xorg
> +++ b/src/gallium/targets/Makefile.xorg
> @@ -33,6 +33,8 @@ LD = $(CXX)
> LDFLAGS += $(LLVM_LDFLAGS)
> USE_CXX=1
> DRIVER_LINKS += $(LLVM_LIBS) -lm -ldl
> +else
> +LDFLAGS += -lstdc++
> endif
This is wrong. Use g++ for linking libstdc++, gcc [...] -lstdc++ doesn't
work everywhere.
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Debian, X and DRI developer
More information about the mesa-dev
mailing list