MinGW-w64-winpthreads-11.0.1

Introduction to MinGW-w64-winpthreads

MinGW-w64-winpthreads are the MinGW-w64 POSIX threads for Win32.

[Note]

Note

Development versions of GLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

MinGW-w64-winpthreads Dependencies

Required

Binary MinGW-w64 and MinGW-w64-binutils-2.42

Installation of MinGW-w64-winpthreads

x86_64 MinGW-w64-winpthreads

Install x86_64 MinGW-w64-winpthreads by running the following commands:

mkdir build-x86_64-winpthreads &&
cd build-x86_64-winpthreads

../mingw-w64-libraries/winpthreads/configure --prefix=/usr/x86_64-w64-mingw32 \
                                             --enable-shared                  \
                                             --enable-static                  \
                                             --host=x86_64-w64-mingw32

make

Now, as the root user:

make install

i686 MinGW-w64-winpthreads

Install i686 MinGW-w64-winpthreads by running the following commands:

mkdir build-i686-winpthreads &&
cd build-i686-winpthreads

../mingw-w64-libraries/winpthreads/configure --prefix=/usr/i686-w64-mingw32   \
                                             --enable-shared                  \
                                             --enable-static                  \
                                             --host=i686-w64-mingw32

make

Now, as the root user:

make install

Command Explanations

--prefix=/usr/*: This option installs the files to their respective architecture for better separation of architectures.

--enable-static: This option enables building needed static libraries and makes it easier to compile Windows software.

--enable-shared: This option enables building needed shared libraries.

--host=*: This option builds files for the architecture passed to it.

Contents

Installed Programs: None
Installed Libraries: libpthread.{,dll.}a, libwinpthread-1.dll, and libwinpthread.{,dll.}a,
Installed Directories: /usr/{i686,x86_64}-w64-mingw32/bin, /usr/{i686,x86_64}-w64-mingw32/lib, and /usr/{i686,x86_64}-w64-mingw32/include

Short Descriptions

libpthread

is a wrapper library that impliments most of the POSIX 1003.1-2001 pthreads standard

libwinpthread

provides functions for winpthreads