bitcoin/depends/hosts
laanwj ae56b3230b depends: For mingw cross compile use -gcc-posix to prevent library conflict
CMake parses some paths from the spec of the C compiler, assuming it
will be the linker, resulting in the link to end up with
`-L/usr/lib/gcc/x86_64-w64-mingw32/12-win32` on debian bookworm if both
-win32 and -posix variants are installed, and -win32 is the default
alternative.

This results in the wrong C++ library being linked, missing
std::threads::hardware_concurrency and other threading functions.

To fix this, use the -posix variant of gcc as well when available. This
fixes a regression compared to autotools, where this scenario worked.
2024-10-01 19:46:27 +02:00
..
darwin.mk depends: Add host-specific cmake_system_version variables 2024-08-16 21:19:10 +01:00
default.mk depends: Amend handling flags environment variables 2024-08-16 21:19:10 +01:00
freebsd.mk depends: Rename cmake_system -> cmake_system_name 2024-08-16 21:19:10 +01:00
linux.mk depends: Add host-specific cmake_system_version variables 2024-08-16 21:19:10 +01:00
mingw32.mk depends: For mingw cross compile use -gcc-posix to prevent library conflict 2024-10-01 19:46:27 +02:00
netbsd.mk depends: Rename cmake_system -> cmake_system_name 2024-08-16 21:19:10 +01:00
openbsd.mk depends: Rename cmake_system -> cmake_system_name 2024-08-16 21:19:10 +01:00