From 5429118f83cdf9bdc4e13dee83e9b6b11b6e0156 Mon Sep 17 00:00:00 2001 From: marynate Date: Mon, 26 May 2014 13:37:58 +0800 Subject: Static mingw windows build --- platform/windows/detect.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'platform/windows') 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++']) -- cgit v1.2.3