diff options
author | marynate <mary.w.nate@gmail.com> | 2014-05-26 13:37:58 +0800 |
---|---|---|
committer | marynate <mary.w.nate@gmail.com> | 2014-05-26 13:42:44 +0800 |
commit | 5429118f83cdf9bdc4e13dee83e9b6b11b6e0156 (patch) | |
tree | bacb69f42564ffa449290986b40798f71f976906 /platform/windows | |
parent | 2760a81b0ba99dcd11ee70d01c3960213d858a57 (diff) |
Static mingw windows build
Diffstat (limited to 'platform/windows')
-rw-r--r-- | platform/windows/detect.py | 10 |
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++'])
|