Skip to content

Commit

Permalink
mingw-build: Build winpthreads library
Browse files Browse the repository at this point in the history
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 <root@stephanos.io>
  • Loading branch information
stephanosio committed Oct 24, 2024
1 parent 6d38fdb commit 9b3207f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mingw-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ build_mingw_toolchain() {
../../src/mingw-w64-v${MINGW_VERSION}/configure \
--prefix=${prefix}/x86_64-w64-mingw32 \
--host=x86_64-w64-mingw32 \
--with-default-msvcrt=ucrt
--with-default-msvcrt=ucrt \
--with-libraries=winpthreads
make -j$(nproc)
make install -j$(nproc)
popd
Expand Down

0 comments on commit 9b3207f

Please sign in to comment.