mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-24 18:23:26 -03:00
depends: target Windows 10 when building for mingw-w64
This commit is contained in:
parent
018e5fcc46
commit
398754e70b
3 changed files with 5 additions and 5 deletions
|
@ -23,5 +23,5 @@ mingw32_debug_CXXFLAGS=$(mingw32_debug_CFLAGS)
|
|||
mingw32_debug_CPPFLAGS=-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC
|
||||
|
||||
mingw32_cmake_system_name=Windows
|
||||
# Windows 7 (NT 6.1).
|
||||
mingw32_cmake_system_version=6.1
|
||||
# Windows 10
|
||||
mingw32_cmake_system_version=10.0
|
||||
|
|
|
@ -8,14 +8,14 @@ $(package)_patches+=fix_mingw_link.patch
|
|||
$(package)_build_subdir=build
|
||||
|
||||
# When building for Windows, we set _WIN32_WINNT to target the same Windows
|
||||
# version as we do in configure. Due to quirks in libevents build system, this
|
||||
# version as we do in releases. Due to quirks in libevents build system, this
|
||||
# is also required to enable support for ipv6. See #19375.
|
||||
define $(package)_set_vars
|
||||
$(package)_config_opts=-DEVENT__DISABLE_BENCHMARK=ON -DEVENT__DISABLE_OPENSSL=ON
|
||||
$(package)_config_opts+=-DEVENT__DISABLE_SAMPLES=ON -DEVENT__DISABLE_REGRESS=ON
|
||||
$(package)_config_opts+=-DEVENT__DISABLE_TESTS=ON -DEVENT__LIBRARY_TYPE=STATIC
|
||||
$(package)_cppflags += -D_GNU_SOURCE
|
||||
$(package)_cppflags_mingw32=-D_WIN32_WINNT=0x0601
|
||||
$(package)_cppflags_mingw32=-D_WIN32_WINNT=0x0A00
|
||||
|
||||
ifeq ($(NO_HARDEN),)
|
||||
$(package)_cppflags+=-D_FORTIFY_SOURCE=3
|
||||
|
|
|
@ -18,7 +18,7 @@ define $(package)_set_vars
|
|||
$(package)_config_opts += -DBUILD_SHARED=OFF -DBUILD_TESTS=OFF -DZMQ_BUILD_TESTS=OFF
|
||||
$(package)_config_opts += -DENABLE_DRAFTS=OFF -DZMQ_BUILD_TESTS=OFF
|
||||
$(package)_cxxflags += -ffile-prefix-map=$($(package)_extract_dir)=/usr
|
||||
$(package)_config_opts_mingw32 += -DZMQ_WIN32_WINNT=0x0601 -DZMQ_HAVE_IPC=OFF
|
||||
$(package)_config_opts_mingw32 += -DZMQ_WIN32_WINNT=0x0A00 -DZMQ_HAVE_IPC=OFF
|
||||
endef
|
||||
|
||||
define $(package)_preprocess_cmds
|
||||
|
|
Loading…
Add table
Reference in a new issue