Changeset 6dfcfecc for chapter05/libstdc++.xml
- Timestamp:
- 03/31/2021 10:41:39 AM (3 years ago)
- Branches:
- ml-11.0, multilib
- Children:
- 7610848
- Parents:
- 811b5a39
- git-author:
- Thomas Trepl <thomas@…> (06/29/2020 07:55:01 AM)
- git-committer:
- Xℹ Ruoyao <xry111@…> (03/31/2021 10:41:39 AM)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/libstdc++.xml
r811b5a39 r6dfcfecc 6 6 ]> 7 7 8 <sect1 id="ch-tools-libstdcpp " role="wrap">9 <?dbhtml filename="gcc-libstdc++ .html"?>8 <sect1 id="ch-tools-libstdcpp-pass1" role="wrap"> 9 <?dbhtml filename="gcc-libstdc++-pass1.html"?> 10 10 11 11 <sect1info condition="script"> … … 15 15 </sect1info> 16 16 17 <title>Libstdc++ from GCC-&gcc-version; </title>17 <title>Libstdc++ from GCC-&gcc-version;, Pass 1</title> 18 18 19 <indexterm zone="ch-tools-libstdcpp ">19 <indexterm zone="ch-tools-libstdcpp-pass1"> 20 20 <primary sortas="a-GCC">GCC</primary> 21 <secondary>tools, libstdc++ </secondary>21 <secondary>tools, libstdc++ pass 1</secondary> 22 22 </indexterm> 23 23 … … 29 29 (part of GCC is written in C++), but we had to defer its installation 30 30 when we built <xref linkend="ch-tools-gcc-pass1"/> 31 because it depends on glibc, which was not yet available in /tools. 31 because it depends on glibc, which was not yet available in the target 32 directory. 32 33 </para> 33 34 … … 37 38 38 39 <seglistitem> 39 <seg>&libstdcpp- ch5-sbu;</seg>40 <seg>&libstdcpp- ch5-du;</seg>40 <seg>&libstdcpp-tmpp1-sbu;</seg> 41 <seg>&libstdcpp-tmpp1-du;</seg> 41 42 </seglistitem> 42 43 </segmentedlist> … … 53 54 </note> 54 55 55 <para>Create a separate build directory for Libstdc++ and enter it:</para>56 <para>Create a separate build directory for libstdc++ and enter it:</para> 56 57 57 58 <screen><userinput remap="pre">mkdir -v build 58 59 cd build</userinput></screen> 59 60 60 <para>Prepare Libstdc++ for compilation:</para>61 <para>Prepare libstdc++ for compilation:</para> 61 62 62 63 <screen><userinput remap="configure">../libstdc++-v3/configure \ 63 64 --host=$LFS_TGT \ 64 --prefix=/tools \ 65 --build=$(../config.guess) \ 66 --prefix=/usr \ 65 67 --disable-multilib \ 66 --disable-nls \<!-- 67 - -disable-libstdcxx-threads \--> 68 --disable-nls \ 68 69 --disable-libstdcxx-pch \ 69 70 --with-gxx-include-dir=/tools/$LFS_TGT/include/c++/&gcc-version;</userinput></screen> … … 75 76 <term><parameter>--host=...</parameter></term> 76 77 <listitem> 77 <para> Indicates touse the cross compiler we have just built78 <para>Specifies the use the cross compiler we have just built 78 79 instead of the one in <filename>/usr/bin</filename>.</para> 79 80 </listitem> 80 81 </varlistentry> 81 <!-- 82 <varlistentry >83 <term><parameter>- -disable-libstdcxx-threads</parameter></term>82 83 <varlistentry arch="ml_32,ml_x32,ml_all"> 84 <term><parameter>--disable-multilib</parameter></term> 84 85 <listitem> 85 <para>Since gcc-pass1 is built without thread support, the C++ 86 thread library cannot be built either.</para> 86 <para>Even when building the multilib version, this switch is 87 given. This is because the additionally built libraries are 88 not required in this stage and some disk space and compile 89 time can be saved.</para> 87 90 </listitem> 88 91 </varlistentry> 89 --> 92 90 93 <varlistentry> 91 94 <term><parameter>--disable-libstdcxx-pch</parameter></term> … … 99 102 <term><parameter>--with-gxx-include-dir=/tools/$LFS_TGT/include/c++/&gcc-version;</parameter></term> 100 103 <listitem> 101 <para>This is the location where the standard include files are102 s earched by the C++ compiler. In a normal build, this information103 is automatically passed to the Libstdc++ <command>configure</command>104 <para>This is the location where the C++ compiler should search for the 105 standard include files. In a normal build, this information 106 is automatically passed to the libstdc++ <command>configure</command> 104 107 options from the top level directory. In our case, this information 105 108 must be explicitly given.</para> … … 115 118 <para>Install the library:</para> 116 119 117 <screen><userinput remap="install">make install</userinput></screen>120 <screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen> 118 121 119 122 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.