mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-23 22:42:14 +08:00
MinGW-w64*: Enabled winpthreads.
Winpthreads has to be built after the main bulk of MinGW-w64, but can still be built before GCC. This means after the bulk build, the winpthread build can be done, which is great.
This commit is contained in:
parent
210ffc2f8b
commit
041aaa290a
@ -42,6 +42,9 @@
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>October 25th, 2024</para>
|
<para>October 25th, 2024</para>
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
|
<listitem>
|
||||||
|
<para>[Zeckmathederg] - MinGW-w64*: Enabled winpthreads.</para>
|
||||||
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>[Zeckmathederg] - icu: Remove Clang note in 32-bit.</para>
|
<para>[Zeckmathederg] - icu: Remove Clang note in 32-bit.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
@ -88,6 +88,7 @@ cd build-x86_64-mingw-w64 &&
|
|||||||
../configure \
|
../configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--target=x86_64-w64-mingw32 \
|
--target=x86_64-w64-mingw32 \
|
||||||
|
--enable-threads=posix \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
--enable-languages=c,c++ &&
|
--enable-languages=c,c++ &&
|
||||||
@ -144,6 +145,7 @@ cd build-i686-mingw-w64 &&
|
|||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--target=i686-w64-mingw32 \
|
--target=i686-w64-mingw32 \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
|
--enable-threads=posix \
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
--enable-languages=c,c++ &&
|
--enable-languages=c,c++ &&
|
||||||
|
|
||||||
@ -303,15 +305,13 @@ rm -v a.exe main.{c,cpp}</userinput></screen>
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
<parameter>--disable-multilib</parameter>: This option ensures
|
<parameter>--enable-threads=posix</parameter>: This option enables
|
||||||
that files are created for the specific architecture of your computer.
|
support for POSIX threads via the winpthreads library.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
<parameter>--enable-threads=posix</parameter>: This option enables
|
<parameter>--disable-multilib</parameter>: This option ensures
|
||||||
support for POSIX threads via the winpthreads library. Invoke it if
|
that files are created for the specific architecture of your computer.
|
||||||
you have built <xref linkend="mingw-w64"/> with <parameter>
|
|
||||||
--with-libraries=winpthreads</parameter>.
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
@ -80,6 +80,28 @@ make</userinput></screen>
|
|||||||
|
|
||||||
<screen role="root"><userinput>make install</userinput></screen>
|
<screen role="root"><userinput>make install</userinput></screen>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Now build the winpthreads library after installing the bulk of MinGW-w64
|
||||||
|
to prevent the build from linking against libraries that weren't
|
||||||
|
installed but now are (this library enables POSIX thread support):
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<screen><userinput>cd .. &&
|
||||||
|
mkdir -v build-x86_64-winpthreads &&
|
||||||
|
cd build-x86_64-winpthreads &&
|
||||||
|
|
||||||
|
../mingw-w64-libraries/winpthreads/configure \
|
||||||
|
--prefix=/usr/x86_64-w64-mingw32 \
|
||||||
|
--host=x86_64-w64-mingw32 &&
|
||||||
|
|
||||||
|
make</userinput></screen>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Now install the winpthreads library as the &root; user:
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<screen role="root"><userinput>make install</userinput></screen>
|
||||||
|
|
||||||
</sect3>
|
</sect3>
|
||||||
|
|
||||||
<sect3>
|
<sect3>
|
||||||
@ -105,6 +127,28 @@ make</userinput></screen>
|
|||||||
|
|
||||||
<screen role="root"><userinput>make install</userinput></screen>
|
<screen role="root"><userinput>make install</userinput></screen>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Now build the winpthreads library after installing the bulk of MinGW-w64
|
||||||
|
to prevent the build from linking against libraries that weren't
|
||||||
|
installed but now are (this library enables POSIX thread support):
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<screen><userinput>cd .. &&
|
||||||
|
mkdir -v build-i686-winpthreads &&
|
||||||
|
cd build-i686-winpthreads &&
|
||||||
|
|
||||||
|
../mingw-w64-libraries/winpthreads/configure \
|
||||||
|
--prefix=/usr/i686-w64-mingw32 \
|
||||||
|
--host=i686-w64-mingw32 &&
|
||||||
|
|
||||||
|
make</userinput></screen>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Now install the winpthreads library as the &root; user:
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<screen role="root"><userinput>make install</userinput></screen>
|
||||||
|
|
||||||
</sect3>
|
</sect3>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
@ -123,14 +167,6 @@ make</userinput></screen>
|
|||||||
the architecture passed to it.
|
the architecture passed to it.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
|
||||||
<parameter>--with-libraries=winpthreads</parameter>: This option
|
|
||||||
builds the winpthreads library, which can enable posix threading.
|
|
||||||
Use it after you have built <xref linkend="mingw-w64-gcc"/> and
|
|
||||||
rebuild that package afterwards with <parameter>
|
|
||||||
--enable-threads=posix</parameter>.
|
|
||||||
</para>
|
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
<parameter>--enable-experimental</parameter>: This option enables
|
<parameter>--enable-experimental</parameter>: This option enables
|
||||||
experimental features.
|
experimental features.
|
||||||
|
Loading…
Reference in New Issue
Block a user