Changeset 51b58ad for chapter07


Ignore:
Timestamp:
03/31/2021 10:41:39 AM (3 years ago)
Author:
Xℹ Ruoyao <xry111@…>
Branches:
ml-11.0, multilib
Children:
c63253fb
Parents:
ce2f9d8
git-author:
Thomas Trepl <thomas@…> (07/08/2020 07:36:00 PM)
git-committer:
Xℹ Ruoyao <xry111@…> (03/31/2021 10:41:39 AM)
Message:

Merge changes from trunk to multilib

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

Location:
chapter07
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chapter07/libstdc++-pass2.xml

    rce2f9d8 r51b58ad  
    6363    <para>Prepare libstdc++ for compilation:</para>
    6464
    65 <screen arch="default"><userinput remap="configure">../libstdc++-v3/configure           \
    66     CXXFLAGS="-g -O2 -D_GNU_SOURCE" \
    67     --prefix=/usr                   \
    68     --disable-multilib              \
    69     --disable-nls                   \
     65<screen arch="default"><userinput remap="configure">
     66../libstdc++-v3/configure            \
     67    CXXFLAGS="-g -O2 -D_GNU_SOURCE"  \
     68    --prefix=/usr                    \
     69    --disable-multilib               \
     70    --disable-nls                    \
     71    --host=$(uname -m)-lfs-linux-gnu \
    7072    --disable-libstdcxx-pch</userinput></screen>
    71 <screen arch="ml_32,ml_x32,ml_all"><userinput remap="configure">../libstdc++-v3/configure           \
    72     CXXFLAGS="-g -O2 -D_GNU_SOURCE" \
    73     --prefix=/usr                   \
    74     --enable-multilib               \
    75     --disable-nls                   \
    76     --disable-libstdcxx-pch        \
    77     --host=x86_64-lfs-linux-gnu</userinput></screen>
     73<screen arch="ml_32,ml_x32,ml_all"><userinput remap="configure">../libstdc++-v3/configure            \
     74    CXXFLAGS="-g -O2 -D_GNU_SOURCE"  \
     75    --prefix=/usr                    \
     76    --enable-multilib                \
     77    --disable-nls                    \
     78    --host=$(uname -m)-lfs-linux-gnu \
     79    --disable-libstdcxx-pch</userinput></screen>
    7880
    7981    <variablelist>
     
    8587          <para>These flags are passed by the top level Makefile when doing
    8688          a full build of GCC.</para>
     89        </listitem>
     90      </varlistentry>
     91
     92      <varlistentry>
     93        <term><parameter>--host=$(uname -m)-lfs-linux-gnu</parameter></term>
     94        <listitem>
     95          <para>We have to mimic what would happen if this package were built
     96          as part of a full compiler build. This switch would be passed to
     97          configure by GCC's build machinery.</para>
    8798        </listitem>
    8899      </varlistentry>
     
    103114          will be built for every arch (m64, m32, mx32) which are
    104115          made available in <xref linkend="ch-tools-gcc-pass1"/>.</para>
    105         </listitem>
    106       </varlistentry>
    107 
    108       <varlistentry arch="ml_32,ml_x32,ml_all">
    109         <term><parameter>--host=x86_64-pc-linux-gnu</parameter></term>
    110         <listitem>
    111           <para>Since up to now the cross-compile tools are used. This
    112           switch is set to ensure that the headers used for multilib are
    113           placed in correct locations where the final system can pick
    114           them up.</para>
    115116        </listitem>
    116117      </varlistentry>
  • chapter07/python.xml

    rce2f9d8 r51b58ad  
    5353    <para>Prepare Python for compilation:</para>
    5454
    55 <screen><userinput remap="configure">./configure --prefix=/usr --without-ensurepip</userinput></screen>
     55<screen><userinput remap="configure">./configure --prefix=/usr   \
     56            --enable-shared \
     57            --without-ensurepip</userinput></screen>
    5658
    5759    <variablelist>
    5860      <title>The meaning of the configure option:</title>
     61
     62      <varlistentry>
     63        <term><parameter>--enable-shared</parameter></term>
     64        <listitem>
     65          <para>This switch prevents installation of static libraries.</para>
     66        </listitem>
     67      </varlistentry>
    5968
    6069      <varlistentry>
Note: See TracChangeset for help on using the changeset viewer.