Skip to content

Commit 398754e

Browse files
committed
depends: target Windows 10 when building for mingw-w64
1 parent 018e5fc commit 398754e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

depends/hosts/mingw32.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ mingw32_debug_CXXFLAGS=$(mingw32_debug_CFLAGS)
2323
mingw32_debug_CPPFLAGS=-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC
2424

2525
mingw32_cmake_system_name=Windows
26-
# Windows 7 (NT 6.1).
27-
mingw32_cmake_system_version=6.1
26+
# Windows 10
27+
mingw32_cmake_system_version=10.0

depends/packages/libevent.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ $(package)_patches+=fix_mingw_link.patch
88
$(package)_build_subdir=build
99

1010
# When building for Windows, we set _WIN32_WINNT to target the same Windows
11-
# version as we do in configure. Due to quirks in libevents build system, this
11+
# version as we do in releases. Due to quirks in libevents build system, this
1212
# is also required to enable support for ipv6. See #19375.
1313
define $(package)_set_vars
1414
$(package)_config_opts=-DEVENT__DISABLE_BENCHMARK=ON -DEVENT__DISABLE_OPENSSL=ON
1515
$(package)_config_opts+=-DEVENT__DISABLE_SAMPLES=ON -DEVENT__DISABLE_REGRESS=ON
1616
$(package)_config_opts+=-DEVENT__DISABLE_TESTS=ON -DEVENT__LIBRARY_TYPE=STATIC
1717
$(package)_cppflags += -D_GNU_SOURCE
18-
$(package)_cppflags_mingw32=-D_WIN32_WINNT=0x0601
18+
$(package)_cppflags_mingw32=-D_WIN32_WINNT=0x0A00
1919

2020
ifeq ($(NO_HARDEN),)
2121
$(package)_cppflags+=-D_FORTIFY_SOURCE=3

depends/packages/zeromq.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ define $(package)_set_vars
1818
$(package)_config_opts += -DBUILD_SHARED=OFF -DBUILD_TESTS=OFF -DZMQ_BUILD_TESTS=OFF
1919
$(package)_config_opts += -DENABLE_DRAFTS=OFF -DZMQ_BUILD_TESTS=OFF
2020
$(package)_cxxflags += -ffile-prefix-map=$($(package)_extract_dir)=/usr
21-
$(package)_config_opts_mingw32 += -DZMQ_WIN32_WINNT=0x0601 -DZMQ_HAVE_IPC=OFF
21+
$(package)_config_opts_mingw32 += -DZMQ_WIN32_WINNT=0x0A00 -DZMQ_HAVE_IPC=OFF
2222
endef
2323

2424
define $(package)_preprocess_cmds

0 commit comments

Comments
 (0)