logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

vdrift-20120722-build.patch (1199B)


  1. --- VDrift.orig/SConstruct
  2. +++ VDrift/SConstruct
  3. @@ -44,6 +44,7 @@
  4. LIBPATH = ['.', '#lib', LOCALBASE + '/lib'],
  5. LINKFLAGS = ['-pthread','-lintl'],
  6. options = opts)
  7. + env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS'])
  8. check_headers = ['GL/gl.h', 'GL/glu.h', 'SDL/SDL.h', 'SDL/SDL_image.h', 'SDL/SDL_rotozoom.h', 'vorbis/vorbisfile.h', 'GL/glew.h', 'bullet/btBulletCollisionCommon.h']
  9. check_libs = []
  10. if 'CC' in os.environ:
  11. @@ -380,7 +381,7 @@
  12. if env['release']:
  13. # release build, debugging off, optimizations on
  14. if (sys.platform != 'freebsd6') and (sys.platform != 'freebsd7') and (sys.platform != 'freebsd8') and (sys.platform != 'freebsd9') and (sys.platform != 'win32') and (sys.platform != 'cygwin'):
  15. - env.Append(CCFLAGS = ['-O1', '-pipe'])
  16. + env.Append(CCFLAGS = ['-pipe'])
  17. else:
  18. # debug build, lots of debugging, no optimizations
  19. env.Append(CCFLAGS = ['-g3'])
  20. @@ -399,7 +400,6 @@
  21. env.Append(CCFLAGS = ['-pg'])
  22. env.Append(LINKFLAGS = ['-pg'])
  23. env.Append(CCFLAGS = ['-g3'])
  24. - env.Append(CCFLAGS = ['-O1'])
  25. #------------------------------------#
  26. # compile-time efficiency assessment #