summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct3
1 files changed, 2 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index f140665..487be82 100644
--- a/SConstruct
+++ b/SConstruct
@@ -16,6 +16,7 @@ if GetOption('mingw32'):
env.Append(LIBS = ['CEGUIOpenGLRenderer', 'CEGUIBase', 'CEGUITGAImageCodec', 'CEGUITinyXMLParser', 'CEGUIFalagardWRBase', 'CEGUISILLYImageCodec',
'SDL_image', 'ftgl', 'freetype-s', 'z', 'pcre', 'opengl32', 'glu32', 'winmm', 'mingw32', 'SDLmain', 'SDL', 'jpeg', 'noise',
'lua', 'tolua++_Static', 'boost_filesystem-mt-s', 'boost_system-mt-s'])
+ env.Append(LINKFLAGS = ['-static-libgcc', '-static-libstdc++'])
env['CXX'] = 'i486-mingw32-g++'
else:
env.Append(LIBS = ['GL', 'GLU', 'noise', 'boost_filesystem', 'tolua++', 'lua'])
@@ -36,6 +37,6 @@ Export('env')
env.SConscript('scripting/SConscript')
-env.Program('foo', Glob('*.cpp') + ['noiseutils/noiseutils.cpp'] + Glob('widgets/*.cpp') + Glob('scripting/*.cpp'))
+env.Program('foo.exe' if GetOption('mingw32') else 'foo', Glob('*.cpp') + ['noiseutils/noiseutils.cpp'] + Glob('widgets/*.cpp') + Glob('scripting/*.cpp'))
# vim: syn=python