Share Pastebin
Guest
Public paste!

k776

By: a guest | Oct 18th, 2008 | Syntax: None | Size: 1.05 KB | Hits: 93 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1. diff -r df8f70a1c1cd SConstruct
  2. --- a/SConstruct        Thu Oct 16 04:45:25 2008 -0400
  3. +++ b/SConstruct        Sat Oct 18 22:39:14 2008 +1300
  4.  -224,12 +224,12 @@
  5.          env.Append(LINKFLAGS='-pg')
  6.          env.Append(CXXFLAGS=' -O2')
  7.          env.Append(LINKFLAGS='-O2')
  8. -    if env['mingw'] or isWindowsPlatform:
  9. -        #These four options must be present before the object files when compiling in mingw
  10. -        env.Append(LINKFLAGS="-lmingw32 -lSDLmain -lSDL -mwindows")
  11. -        env.Append(LIBS=['wsock32', 'winmm'])
  12. -        env.ParseConfig("sh sdl-config --cflags")
  13. -        env.ParseConfig("sh sdl-config --libs")
  14. +    if env['mingw'] or isWindowsPlatform:
  15. +        env.Append(LIBPATH=['/usr/local/lib'])
  16. +        env.Append(LIBS=['wsock32', 'winmm', 'mingw32', 'SDLmain', 'SDL'])
  17. +        env.Append(LINKFLAGS=['-mwindows'])
  18. +        env.Append(CPPPATH=['/usr/local/include/SDL'])
  19. +        env.Append(CPPDEFINES=['-D_GNU_SOURCE=1', '-Dmain=SDL_main'])
  20.      else:
  21.          env.ParseConfig("sdl-config --cflags")
  22.          env.ParseConfig("sdl-config --libs")