MinGW-w64-winpthreads are the MinGW-w64 POSIX threads for Win32.
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.
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
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
--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.