Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mingw-build: Build winpthreads library #29

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions mingw-build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -euo pipefail

BINUTILS_VERSION=2.42
GCC_VERSION=13.2.0
MINGW_VERSION=12.0.0
Expand Down Expand Up @@ -85,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)
Expand Down