From BlenderWiki
Building the most compatible Linux Binary (yofrankie)
Here are the scons options I have used for yo frankie to be as compatible as possible
user-config_apricot.py
WITH_BF_GAMEENGINE = 'true' WITH_BF_PLAYER = 'true' BF_PYTHON_VERSION = '2.5' WITH_BF_STATICPYTHON = 'true' # don't depend on systems libpython.so WITH_BF_STATICCXX = 'true' # don't depend on systems libstdc++.so WITH_BF_STATICOPENGL = 'false' # use system's opengl WITH_BF_STATICOPENAL = 'true' # NOTE - OpenAL-soft does not build a static lib. # needed to make own. after building openal-soft with cmake do the following... # ar cr openal.a `find . -name "*.o"` # now copy openal.a to /usr/lib BF_OPENAL_LIB_STATIC = '${BF_OPENAL}/lib/libopenal.a ${BF_OPENAL}/lib/libalut.a' WITH_BF_OPENJPEG = 'false' WITH_BF_OPENEXR = 'false' WITH_BF_FFMPEG = 'false' WITH_BF_INTERNATIONAL = 'false' WITH_BF_ICONV = 'false' BF_BUILDDIR="../build/linux2_apricot" BF_INSTALLDIR="../install/linux2_apricot" # -static-libgcc removed the dependency for libgcc_s.so PLATFORM_LINKFLAGS = ['-pthread', '-static-libgcc']
use this config with the command
scons BF_CONFIG=user-config_apricot.py
If for some reason libstdc++ is still a dependency you can add this to your user-config.py
CC = 'gcc -Wl,--as-needed' CXX = 'g++ -Wl,--as-needed'