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

1
NEWS
View File

@ -5,6 +5,7 @@ ver 0.21.1 (not yet released)
- ffmpeg: fix build failure with non-standard FFmpeg installation path - ffmpeg: fix build failure with non-standard FFmpeg installation path
* fix build failure on Linux-PowerPC * fix build failure on Linux-PowerPC
* fix build failure on FreeBSD * fix build failure on FreeBSD
* eliminate DLL dependencies on Windows
ver 0.21 (2018/10/31) ver 0.21 (2018/10/31)
* configuration * configuration

View File

@ -62,7 +62,8 @@ class CrossGccToolchain:
self.cxxflags = common_flags self.cxxflags = common_flags
self.cppflags = '-isystem ' + os.path.join(install_prefix, 'include') + \ self.cppflags = '-isystem ' + os.path.join(install_prefix, 'include') + \
' -DWINVER=0x0600 -D_WIN32_WINNT=0x0600' ' -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.libs = ''
self.is_arm = arch.startswith('arm') self.is_arm = arch.startswith('arm')