bitcoin/depends/hosts
laanwj 7fec638222
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.

Github-Pull: #31013
Rebased-From: ae56b3230b
2024-10-31 15:07:51 +00:00
..
darwin.mk depends: remove ENV unsetting for darwin 2024-07-25 14:18:25 +01:00
default.mk build: swap otool for (llvm-)objdump 2024-05-08 16:36:41 +08:00
freebsd.mk build: remove --enable-lto 2024-01-05 15:17:50 +00:00
linux.mk depends: add the new LLVM debug macro 2024-04-07 10:49:21 +01:00
mingw32.mk depends: For mingw cross compile use -gcc-posix to prevent library conflict 2024-10-31 15:07:51 +00:00
netbsd.mk build: remove --enable-lto 2024-01-05 15:17:50 +00:00
openbsd.mk build: remove --enable-lto 2024-01-05 15:17:50 +00:00