Line
Link Here
|
0 |
-- SConstruct |
0 |
++ SConstruct |
Lines 138-143
Link Here
|
138 |
LINKFLAGS = ['-pthread'], |
139 |
LINKFLAGS = ['-pthread'], |
139 |
CC = 'gcc', CXX = 'g++', |
140 |
CC = 'gcc', CXX = 'g++', |
140 |
options = opts) |
141 |
options = opts) |
|
|
142 |
env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS']) |
141 |
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', 'curl/curl.h', 'bullet/btBulletCollisionCommon.h', 'archive.h'] |
143 |
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', 'curl/curl.h', 'bullet/btBulletCollisionCommon.h', 'archive.h'] |
142 |
check_libs = [ ['GLEW', 'GL/glew.h', 'glDeleteSamplers(0, NULL);', 'Your GLEW library is out of date.'] ] |
144 |
check_libs = [ ['GLEW', 'GL/glew.h', 'glDeleteSamplers(0, NULL);', 'Your GLEW library is out of date.'] ] |
143 |
|
145 |
|
Lines 390-396
Link Here
|
390 |
if env['release']: |
392 |
if env['release']: |
391 |
# release build, debugging off, optimizations on |
393 |
# release build, debugging off, optimizations on |
392 |
if (sys.platform != 'freebsd6') and (sys.platform != 'freebsd7') and (sys.platform != 'freebsd8') and (sys.platform != 'freebsd9') and (sys.platform != 'win32') and (sys.platform != 'cygwin'): |
394 |
if (sys.platform != 'freebsd6') and (sys.platform != 'freebsd7') and (sys.platform != 'freebsd8') and (sys.platform != 'freebsd9') and (sys.platform != 'win32') and (sys.platform != 'cygwin'): |
393 |
env.Append(CCFLAGS = ['-O1', '-pipe']) |
395 |
env.Append(CCFLAGS = ['-pipe']) |
394 |
else: |
396 |
else: |
395 |
# debug build, lots of debugging, no optimizations |
397 |
# debug build, lots of debugging, no optimizations |
396 |
env.Append(CCFLAGS = ['-g3']) |
398 |
env.Append(CCFLAGS = ['-g3']) |
Lines 409-415
Link Here
|
409 |
env.Append(CCFLAGS = ['-pg']) |
411 |
env.Append(CCFLAGS = ['-pg']) |
410 |
env.Append(LINKFLAGS = ['-pg']) |
412 |
env.Append(LINKFLAGS = ['-pg']) |
411 |
env.Append(CCFLAGS = ['-g3']) |
413 |
env.Append(CCFLAGS = ['-g3']) |
412 |
env.Append(CCFLAGS = ['-O1']) |
|
|
413 |
|
414 |
|
414 |
#------------------------------------# |
415 |
#------------------------------------# |
415 |
# compile-time efficiency assessment # |
416 |
# compile-time efficiency assessment # |