# HG changeset patch # User mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1219101092 0 # Node ID b49714fff47888ac863f42427bd757e00265ac3c # Parent 9a1529f9625ea3615e43ced8c7fd165e1022345d * Workaround for Segfault_in_cxa_allocate_exception: http://wiki.fifengine.de/Segfault_in_cxa_allocate_exception * Full credit goes to Yonibear from OpenAnno who tracked down the issue diff -r 9a1529f9625e -r b49714fff478 build/linux2-config-dist.py --- a/build/linux2-config-dist.py Thu Aug 07 15:46:46 2008 +0000 +++ b/build/linux2-config-dist.py Mon Aug 18 23:11:32 2008 +0000 @@ -23,6 +23,7 @@ context.checkSimpleLib(['png'], 'png.h'); if context.env['opengl']: - context.env.Append(LIBS = ['GL', 'GLU']) + # linking explicitly against libstdc++ to work around Segfault_in_cxa_allocate_exception issue: http://wiki.fifengine.de/Segfault_in_cxa_allocate_exception + context.env.Append(LIBS = ['stdc++', 'GL', 'GLU']) context.env.Append(LIBPATH = ['/usr/X11R6/lib']) context.checkSimpleLib(['guichan_opengl'])