Changeset 675606b for chapter05/libstdc++.xml
- Timestamp:
- 06/16/2020 11:56:28 AM (4 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 9a05e45
- Parents:
- 560065f (diff), 1cd5961 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/libstdc++.xml
r560065f r675606b 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> 84 <listitem> 85 <para>Since gcc-pass1 is built without thread support, the C++ 86 thread library cannot be built either.</para> 87 </listitem> 88 </varlistentry> 89 --> 82 90 83 <varlistentry> 91 84 <term><parameter>--disable-libstdcxx-pch</parameter></term> … … 99 92 <term><parameter>--with-gxx-include-dir=/tools/$LFS_TGT/include/c++/&gcc-version;</parameter></term> 100 93 <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>94 <para>This is the location where the C++ compiler should search for the 95 standard include files. In a normal build, this information 96 is automatically passed to the libstdc++ <command>configure</command> 104 97 options from the top level directory. In our case, this information 105 98 must be explicitly given.</para> … … 115 108 <para>Install the library:</para> 116 109 117 <screen><userinput remap="install">make install</userinput></screen>110 <screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen> 118 111 119 112 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.