win32/build.py: link libstdc++ and libcc statically

Fixes #404
This commit is contained in:
Max Kellermann
2018-11-04 10:47:20 +01:00
parent aa6bef54dd
commit aba18924ee
2 changed files with 3 additions and 1 deletions

View File

@@ -62,7 +62,8 @@ class CrossGccToolchain:
self.cxxflags = common_flags
self.cppflags = '-isystem ' + os.path.join(install_prefix, 'include') + \
' -DWINVER=0x0600 -D_WIN32_WINNT=0x0600'
self.ldflags = '-L' + os.path.join(install_prefix, 'lib')
self.ldflags = '-L' + os.path.join(install_prefix, 'lib') + \
' -static-libstdc++ -static-libgcc'
self.libs = ''
self.is_arm = arch.startswith('arm')