--- SConstruct.old +++ SConstruct @@ -141,6 +141,7 @@ LINKFLAGS = ['-pthread'], CC = 'gcc', CXX = 'g++', options = opts) + env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS']) check_headers = ['asio.hpp', 'boost/bind.hpp', 'GL/gl.h', 'GL/glu.h', 'SDL/SDL.h', 'SDL/SDL_image.h', 'SDL/SDL_rotozoom.h', 'vorbis/vorbisfile.h', 'GL/glew.h']