summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorreduz <reduzio@gmail.com>2014-06-11 01:19:18 -0300
committerreduz <reduzio@gmail.com>2014-06-11 01:19:18 -0300
commit2bf34875debd1b60809d22cf61a300b56cdfe084 (patch)
treec12693540ac68742a3fdc587a444b46443783e12 /platform
parent267ab88c68d75dfb5fa8eb53137369df2907a85a (diff)
parent5429118f83cdf9bdc4e13dee83e9b6b11b6e0156 (diff)
Merge pull request #460 from marynate/PR-static-mingw-build
Static mingw windows 32bit build - In any case, i think this depends on the version of mingw you have installed.
Diffstat (limited to 'platform')
-rw-r--r--platform/windows/detect.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py
index 7f71332517..0e21540e13 100644
--- a/platform/windows/detect.py
+++ b/platform/windows/detect.py
@@ -143,10 +143,12 @@ def configure(env):
mingw_prefix=""
if (env["force_32_bits"]!="no"):
- env['OBJSUFFIX'] = ".32"+env['OBJSUFFIX']
- env['LIBSUFFIX'] = ".32"+env['LIBSUFFIX']
- env.Append(CCFLAGS=['-m32'])
- env.Append(LINKFLAGS=['-m32'])
+ env['OBJSUFFIX'] = ".32"+env['OBJSUFFIX']
+ env['LIBSUFFIX'] = ".32"+env['LIBSUFFIX']
+ env.Append(CCFLAGS=['-m32'])
+ env.Append(LINKFLAGS=['-m32'])
+ env.Append(LINKFLAGS=['-static-libgcc'])
+ env.Append(LINKFLAGS=['-static-libstdc++'])