From df7b045a96fbb1666d197d36fdaca3015ee56930 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Thu, 24 Oct 2024 16:29:08 +0900 Subject: [PATCH] mingw-build: Build winpthreads library Build MinGW-w64 winpthreads library, which enables pthread support on MinGW-w64 toolchain. pthread support is required when compiling libgcc with posix thread model. Signed-off-by: Stephanos Ioannidis --- mingw-build.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mingw-build.sh b/mingw-build.sh index ad9d111..285a054 100755 --- a/mingw-build.sh +++ b/mingw-build.sh @@ -87,6 +87,16 @@ build_mingw_toolchain() { make install -j$(nproc) popd + # Build MinGW winpthreads + mkdir mingw-winpthreads + pushd mingw-winpthreads + ../../src/mingw-w64-v${MINGW_VERSION}/mingw-w64-libraries/winpthreads/configure \ + --prefix=${prefix}/x86_64-w64-mingw32 \ + --host=x86_64-w64-mingw32 + make -j$(nproc) + make install + popd + # Build final GCC pushd gcc make -j$(nproc)