glfs/wine/deps/tc/mingw-w64-winpthreads.xml
2024-06-04 04:30:55 -06:00

193 lines
5.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../../general.ent">
%general-entities;
<!ENTITY mingw-w64-download-http "https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/mingw-w64-v&mingw-w64-version;.tar.bz2">
<!ENTITY mingw-w64-download-ftp " ">
]>
<sect1 id="mingw-w64-winpthreads" xreflabel="MinGW-w64-winpthreads-&mingw-w64-version;">
<?dbhtml filename="mingw-w64-winpthreads.html"?>
<title>MinGW-w64-winpthreads-&mingw-w64-version;</title>
<indexterm zone="mingw-w64-winpthreads">
<primary sortas="a-mingw-w64-winpthreads">mingw-w64-winpthreads</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to MinGW-w64-winpthreads</title>
<para>
MinGW-w64-winpthreads are the MinGW-w64 POSIX threads for Win32.
</para>
&lfs121_checked;
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&mingw-w64-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&mingw-w64-download-ftp;"/>
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">MinGW-w64-winpthreads Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<xref linkend="mingw-w64-binary"/> and <xref linkend="mingw-w64-binutils"/>
</para>
</sect2>
<sect2 role="installation">
<title>Installation of MinGW-w64-winpthreads</title>
<sect3>
<title>x86_64 MinGW-w64-winpthreads</title>
<para>
Install x86_64 <application>MinGW-w64-winpthreads</application>
by running the following commands:
</para>
<screen><userinput>mkdir build-x86_64-winpthreads &amp;&amp;
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</userinput></screen>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make install</userinput></screen>
</sect3>
<sect3>
<title>i686 MinGW-w64-winpthreads</title>
<para>
Install i686 <application>MinGW-w64-winpthreads</application>
by running the following commands:
</para>
<screen><userinput>mkdir build-i686-winpthreads &amp;&amp;
cd build-i686-winpthreads
../mingw-w64-libraries/winpthreads/configure --prefix=/usr/i686-w64-mingw32 \
--enable-shared \
--enable-static \
--host=i686-w64-mingw32
make</userinput></screen>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make install</userinput></screen>
</sect3>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para>
<parameter>--prefix=/usr/*</parameter>: This option installs
the files to their respective architecture for better separation
of architectures.
</para>
<para>
<parameter>--enable-static</parameter>: This option enables
building needed static libraries and makes it easier to compile
Windows software.
</para>
<para>
<parameter>--enable-shared</parameter>: This option enables
building needed shared libraries.
</para>
<para>
<parameter>--host=*</parameter>: This option builds files for
the architecture passed to it.
</para>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>
None
</seg>
<seg>
libpthread.{,dll.}a, libwinpthread-1.dll, and libwinpthread.{,dll.}a,
</seg>
<seg>
/usr/{i686,x86_64}-w64-mingw32/bin,
/usr/{i686,x86_64}-w64-mingw32/lib, and
/usr/{i686,x86_64}-w64-mingw32/include
</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="libpthread">
<term><filename>libpthread</filename></term>
<listitem>
<para>
is a wrapper library that impliments most of the POSIX 1003.1-2001
pthreads standard
</para>
<indexterm zone="mingw-w64-winpthreads libpthread">
<primary sortas="b-libpthread">libpthread</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libwinpthread">
<term><filename>libwinpthread</filename></term>
<listitem>
<para>
provides functions for winpthreads
</para>
<indexterm zone="mingw-w64-winpthreads libwinpthread">
<primary sortas="b-libwinpthread">libwinpthread</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>