Files
bitcoin/depends/hosts/mingw32.mk
fanquake f1e14dfbe9 depends: remove workaround for Make older than 4.2.90
This was introduced for distros shipping older make, such as
Ubuntu 20.04 (4.2.1). It's likely that all distros being used for
Darwin and Qindows cross compilation, are shipping a newer make at
this point.
2026-04-03 09:18:59 +08:00

28 lines
652 B
Makefile

ifneq ($(shell command -v $(host)-gcc-posix),)
mingw32_CC := $(host)-gcc-posix
endif
ifneq ($(shell command -v $(host)-g++-posix),)
mingw32_CXX := $(host)-g++-posix
endif
mingw32_CFLAGS=
mingw32_CXXFLAGS=
ifneq ($(LTO),)
mingw32_AR = $(host_toolchain)gcc-ar
mingw32_NM = $(host_toolchain)gcc-nm
mingw32_RANLIB = $(host_toolchain)gcc-ranlib
endif
mingw32_release_CFLAGS=-O2
mingw32_release_CXXFLAGS=$(mingw32_release_CFLAGS)
mingw32_debug_CFLAGS=-O1 -g
mingw32_debug_CXXFLAGS=$(mingw32_debug_CFLAGS)
mingw32_debug_CPPFLAGS=-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC
mingw32_cmake_system_name=Windows
# Windows 10
mingw32_cmake_system_version=10.0