MinGW-w64-CRT-11.0.1

Introduction to MinGW-w64-CRT

MinGW-w64-CRT provides runtime libraries needed by Windows, ranging from basic C and C++ operations to providing DirectX libraries used by many applications including games.

[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-CRT Dependencies

Required

Binary MinGW-w64, MinGW-w64-binutils-2.42, and MinGW-w64-headers-11.0.1

Installation of MinGW-w64-CRT

x86_64 MinGW-w64-CRT

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

mkdir build-x86_64-crt &&
cd build-x86_64-crt

../mingw-w64-crt/configure --prefix=/usr/x86_64-w64-mingw32 \
                           --disable-lib32                  \
                           --enable-lib64                   \
                           --host=x86_64-w64-mingw32        \
                           --enable-wildcard

make

Now, as the root user:

make install

i686 MinGW-w64-CRT

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

mkdir build-i686-crt &&
cd build-i686-crt

../mingw-w64-crt/configure --prefix=/usr/i686-w64-mingw32 \
                           --disable-lib64                \
                           --enable-lib32                 \
                           --host=i686-w64-mingw32        \
                           --enable-wildcard

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.

--{dis,en}able-lib{32,64}: These options first disable the library format not used by the architecture then enables the library format that is used by the architecture.

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

--enable-wildcard: This option enables command line globbing.

Contents

Installed Programs: None
Installed Libraries: Various static libraries needed by Windows. To see the whole list, visit https://archlinux.org/packages/extra/any/mingw-w64-crt/ and see "Package Contents".
Installed Directories: None