cURL: Work around make clean not working.

This commit is contained in:
Zeckmathederg 2024-10-26 20:21:12 -06:00
parent eee48d82ea
commit 5cf45be929
2 changed files with 46 additions and 43 deletions

View File

@ -42,6 +42,9 @@
<listitem>
<para>October 25th, 2024</para>
<itemizedlist>
<listitem>
<para>[Zeckmathederg] - cURL: Work around make clean not working.</para>
</listitem>
<listitem>
<para>[Zeckmathederg] - NSS: Work around make clean not working.</para>
</listitem>

View File

@ -31,8 +31,6 @@
functions like streaming media.
</para>
<itemizedlist spacing="compact">
<listitem>
<para>
@ -83,7 +81,10 @@
commands:
</para>
<screen><userinput>./configure --prefix=/usr \
<screen><userinput>mkdir -v build &amp;&amp;
cd build &amp;&amp;
../configure --prefix=/usr \
--disable-static \
--with-openssl \
--with-ca-path=/etc/ssl/certs &amp;&amp;
@ -159,6 +160,42 @@ cp -v -R docs -T /usr/share/doc/curl-&curl-version;</userinput></screen>
</para>
</sect2>
<sect2>
<title>32-bit Installation of cURL</title>
<para>
First clean the build directory:
</para>
<screen><userinput>rm -rf *</userinput></screen>
<para>
Install <application>lib32-cURL</application>
by running the following commands:
</para>
<screen><userinput>CC="gcc -m32" CXX="g++ -m32" \
PKG_CONFIG_PATH=/usr/lib32/pkgconfig \
../configure --prefix=/usr \
--libdir=/usr/lib32 \
--host=i686-pc-linux-gnu \
--disable-static \
--with-openssl \
--with-ca-path=/etc/ssl/certs &amp;&amp;
make</userinput></screen>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make DESTDIR=$PWD/DESTDIR install
cp -vr DESTDIR/usr/lib32/* /usr/lib32
rm -rf DESTDIR
ldconfig</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
@ -216,43 +253,6 @@ cp -v -R docs -T /usr/share/doc/curl-&curl-version;</userinput></screen>
</sect2>
<sect2>
<title>32-bit Installation of cURL</title>
<note><para>
Like <xref linkend="nss"/>, cleaning the project tree doesn't work with
this package as expected and will lead to the 32-bit build to fail.
Remove the extracted folder from the tarball, extract the tarball, then
go back into it and follow the instructions below as normal.
</para></note>
<para>
Install <application>lib32-cURL</application>
by running the following commands:
</para>
<screen><userinput>CC="gcc -m32" CXX="g++ -m32" \
PKG_CONFIG_PATH=/usr/lib32/pkgconfig \
./configure --prefix=/usr \
--libdir=/usr/lib32 \
--host=i686-pc-linux-gnu \
--disable-static \
--with-openssl \
--with-ca-path=/etc/ssl/certs &amp;&amp;
make</userinput></screen>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make DESTDIR=$PWD/DESTDIR install
cp -vr DESTDIR/usr/lib32/* /usr/lib32
rm -rf DESTDIR
ldconfig</userinput></screen>
</sect2>
<sect2 role="content">
<title>Contents</title>