mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-31 10:41:08 +00:00
The per-host flag variables hold platform-specific defaults that are ignored when flag environment variables are set, so it was wrong for them to contain -std options relied on by package definitions. Additionally, these flags (-pipe and -std=xx) will no longer be passed into the CMake build, meaning less duplication in the build summary. Pulled out of #31920.
28 lines
704 B
Makefile
28 lines
704 B
Makefile
ifneq ($(shell $(SHELL) $(.SHELLFLAGS) "command -v $(host)-gcc-posix"),)
|
|
mingw32_CC := $(host)-gcc-posix
|
|
endif
|
|
ifneq ($(shell $(SHELL) $(.SHELLFLAGS) "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
|