From 89afa22870de894c1720f551dbb884f65ff51704 Mon Sep 17 00:00:00 2001 From: Matthew Burgess Date: Thu, 28 Mar 2013 17:57:16 +0000 Subject: Add libstdc++.xml, missed from r10220. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10226 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/libstdc++.xml | 126 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 chapter05/libstdc++.xml (limited to 'chapter05') diff --git a/chapter05/libstdc++.xml b/chapter05/libstdc++.xml new file mode 100644 index 000000000..02c4a05db --- /dev/null +++ b/chapter05/libstdc++.xml @@ -0,0 +1,126 @@ + + + %general-entities; +]> + + + + + + libstdc++ + &gcc-version; +
&gcc-url;
+
+ + Libstdc++-&gcc-version; + + + GCC + tools, libstdc++ + + + + + + <para>Libstdc++ is the standard C++ library. It is needed for the correct + operation of the g++ compiler.</para> + + <segmentedlist> + <segtitle>&buildtime;</segtitle> + <segtitle>&diskspace;</segtitle> + + <seglistitem> + <seg>&libstdcpp-ch5-sbu;</seg> + <seg>&libstdcpp-ch5-du;</seg> + </seglistitem> + </segmentedlist> + + </sect2> + + <sect2 role="installation"> + <title>Installation of Target Libstdc++ + + + Libstdc++ is part of the GCC sources. + You should first unpack the GCC tarball and change to the + gcc-&gcc-version; directory. + + + Create a directory for Libstdc++ and enter it: + +mkdir -pv ../gcc-build +cd ../gcc-build + + Prepare Libstdc++ for compilation: + +../gcc-&gcc-version;/libstdc++-v3/configure \ + --host=$LFS_TGT \ + --prefix=/tools \ + --disable-multilib \ + --disable-shared \ + --disable-nls \ + --disable-libstdcxx-threads \ + --disable-libstdcxx-pch \ + --with-gxx-include-dir=/tools/$LFS_TGT/include/c++/&gcc-version; + + + The meaning of the configure options: + + + --host=... + + Indicates to use the cross compiler we have just built + instead of the one in /usr/bin. + + + + + --disable-libstdcxx-threads + + Since we have not built the thread C library, the C++ + one cannot be built as well. + + + + + --disable-libstdcxx-pch + + This switch prevents the installation of precompiled + include files, which are not needed at this stage. + + + + + --with-gxx-include-dir=/tools/include/c++/&gcc-version; + + This is the location where the standard include files are + searched by the C++ compiler. In a normal build, this information + is automatically passed to the Libstdc++ configure + options from the toplevel directory. In our case, this information + must be explicitely given. + + + + + + Compile libstdc++ by running: + +make + + Install the library: + +make install + + + + + + + <para>Details on this package are located in + <xref linkend="contents-gcc" role="."/></para> + + </sect2> + +</sect1> -- cgit v1.2.3-54-g00ecf