Ignore:
Timestamp:
03/31/2021 10:41:31 AM (3 years ago)
Author:
Xℹ Ruoyao <xry111@…>
Branches:
ml-11.0, multilib
Children:
6702623
Parents:
989524c
git-author:
Thomas Trepl <thomas@…> (04/01/2019 05:00:45 PM)
git-committer:
Xℹ Ruoyao <xry111@…> (03/31/2021 10:41:31 AM)
Message:

First apply of multilib-patch of April 1st, 2019

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11566 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/libffi.xml

    r989524c rb3f1ebb3  
    9999  </sect2>
    100100
     101  <!-- ~~~~~ m32 ~~~~~ -->
     102  <sect2 arch="multilib" role="installation">
     103    <title>Installation of Libffi - 32-bit</title>
     104
     105    <para>Clean previous build:</para>
     106
     107<screen><userinput remap="pre">make distclean</userinput></screen>
     108
     109    <para>Prepare Libffi for compilation:</para>
     110
     111<screen><userinput remap="configure">CC="gcc -m32" CXX="g++ -m32" \
     112./configure                  \
     113    --prefix=/usr            \
     114    --disable-static         \
     115    --libdir=/usr/lib32      \
     116    --with-gcc-arch=i686     \
     117    --host=i686-pc-linux-gnu</userinput></screen>
     118
     119    <para>Compile the package:</para>
     120
     121<screen><userinput remap="make">make</userinput></screen>
     122
     123    <para>To test the results, issue:</para>
     124
     125<screen><userinput remap="test">make check</userinput></screen>
     126
     127    <para>Install the package:</para>
     128
     129<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
     130cp -Rv DESTDIR/usr/lib32/* /usr/lib32
     131rm -rf DESTDIR</userinput></screen>
     132
     133  </sect2>
     134
     135  <!-- ~~~~~ mx32 ~~~~~ -->
     136  <sect2 arch="multilib" role="installation">
     137    <title>Installation of Libffi - x32-bit</title>
     138
     139    <para>Clean previous build:</para>
     140
     141<screen><userinput remap="pre">make distclean</userinput></screen>
     142
     143    <para>Prepare Libffi for compilation:</para>
     144
     145<screen><userinput remap="configure">CC="gcc -mx32" CXX="g++ -mx32" \
     146./configure                    \
     147    --prefix=/usr              \
     148    --disable-static           \
     149    --with-gcc-arch=x86_64     \
     150    --libdir=/usr/libx32       \
     151    --host=x86_64-unknown-linux-gnux32</userinput></screen>
     152
     153    <para>Compile the package:</para>
     154
     155<screen><userinput remap="make">make</userinput></screen>
     156
     157    <para>To test the results, issue:</para>
     158
     159<screen><userinput remap="test">make check</userinput></screen>
     160
     161    <para>Install the package:</para>
     162
     163<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
     164cp -Rv DESTDIR/usr/libx32/* /usr/libx32
     165rm -rf DESTDIR</userinput></screen>
     166
     167  </sect2>
     168
    101169  <sect2 id="contents-libffi" role="content">
    102170    <title>Contents of Libffi</title>
Note: See TracChangeset for help on using the changeset viewer.