From aba18924ee95422c1c7342e98a97d760ccaa31d6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 4 Nov 2018 10:47:20 +0100 Subject: [PATCH] win32/build.py: link libstdc++ and libcc statically Fixes #404 --- NEWS | 1 + win32/build.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 53bdd6763..8ff962a14 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,7 @@ ver 0.21.1 (not yet released) - ffmpeg: fix build failure with non-standard FFmpeg installation path * fix build failure on Linux-PowerPC * fix build failure on FreeBSD +* eliminate DLL dependencies on Windows ver 0.21 (2018/10/31) * configuration diff --git a/win32/build.py b/win32/build.py index 32027a64b..0e09003fe 100755 --- a/win32/build.py +++ b/win32/build.py @@ -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')