[Mesa-dev] Mesa (master): configs: Add -lstdc++ to default.
Dan Nicholson
dbn.lists at gmail.com
Thu Sep 16 05:51:49 PDT 2010
On Tue, Aug 24, 2010 at 6:35 AM, Brian Paul <brianp at vmware.com> wrote:
> On 08/24/2010 03:20 AM, Michel Dänzer wrote:
>>
>> On Don, 2010-08-19 at 18:11 -0700, Vinson Lee wrote:
>>>
>>> Module: Mesa
>>> Branch: master
>>> Commit: 9b7480cd95c2d1259e23bfb5549cefaa94ebaca1
>>> URL:
>>> http://cgit.freedesktop.org/mesa/mesa/commit/?id=9b7480cd95c2d1259e23bfb5549cefaa94ebaca1
>>>
>>> Author: Vinson Lee<vlee at vmware.com>
>>> Date: Thu Aug 19 18:09:24 2010 -0700
>>>
>>> configs: Add -lstdc++ to default.
>>>
>>> This fixes the following error when trying to run glxinfo or glxgears
>>> with swrast.
>>>
>>> undefined symbol: __cxa_pure_virtual
>>>
>>> ---
>>>
>>> configs/default | 2 +-
>>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>>
>>> diff --git a/configs/default b/configs/default
>>> index 4f6334b..cdfa811 100644
>>> --- a/configs/default
>>> +++ b/configs/default
>>> @@ -116,7 +116,7 @@ EGL_CLIENT_APIS = $(GL_LIB)
>>>
>>> # Library dependencies
>>> #EXTRA_LIB_PATH ?=
>>> -GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread -ltalloc
>>> +GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread -ltalloc
>>> -lstdc++
>>
>> If linking with libstdc++ can't be avoided, the standard solution is to
>> link with g++ instead of using gcc -lstdc++, which doesn't work on all
>> platforms.
>
> I missed this message/commit while I was away.
>
> The attached patch is how I would fix this problem.
>
> Vinson, can you try reverting your patch and trying this change?
>
> There may be other Makefiles where this change might be needed.
Sorry I haven't been around much, but I believe it's definitely the
preference to link with the c++ compiler instead of hardcoding
-lstdc++.
--
Dan
More information about the mesa-dev
mailing list