diff options
author | Pierre Labastie <pieere@linuxfromscratch.org> | 2020-05-03 21:02:51 +0000 |
---|---|---|
committer | Pierre Labastie <pieere@linuxfromscratch.org> | 2020-05-03 21:02:51 +0000 |
commit | efcb3933433838b71f3a4a53ec1ac6d899aaec0b (patch) | |
tree | f0b1fb24d5ac7ebb93cc2deddefbc16938ea49d0 /chapter06/gcc.xml | |
parent | 9d719e24c33f9a2ecf8a5582cd811c43a8fa46c2 (diff) |
Make the new book
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11831 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/gcc.xml')
-rw-r--r-- | chapter06/gcc.xml | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/chapter06/gcc.xml b/chapter06/gcc.xml index a9c8fa16c..952e3cca7 100644 --- a/chapter06/gcc.xml +++ b/chapter06/gcc.xml @@ -58,8 +58,8 @@ cd build</userinput></screen> <para>Prepare GCC for compilation:</para> -<screen><userinput remap="configure">SED=sed \ -../configure --prefix=/usr \ +<screen><userinput remap="configure">../configure --prefix=/usr \ + LD=ld \ --enable-languages=c,c++ \ --disable-multilib \ --disable-bootstrap \ @@ -71,26 +71,9 @@ cd build</userinput></screen> for instructions on how to build all of GCC's supported languages.</para> <variablelist> - <title>The meaning of the new configure parameters:</title> + <title>The meaning of the new configure parameter:</title> <varlistentry> - <term><envar>SED=sed</envar></term> - <listitem> - <para>Setting this environment variable prevents a hard-coded - path to /tools/bin/sed.</para> - </listitem> - </varlistentry> - <!-- - <varlistentry> - <term><parameter>- -disable-libmpx</parameter></term> - <listitem> - <para>This switch tells GCC to not build mpx (Memory Protection - Extensions) that can cause problems on some processors. It has - been removed from the next version of gcc.</para> - </listitem> - </varlistentry> - --> - <varlistentry> <term><parameter>--with-system-zlib</parameter></term> <listitem> <para>This switch tells GCC to link to the system installed copy of @@ -170,12 +153,12 @@ rm -rf /usr/lib/gcc/$(gcc -dumpmachine)/&gcc-version;/include-fixed/bits/</useri for "historical" reasons.</para> <screen><userinput remap="install">ln -sv ../usr/bin/cpp /lib</userinput></screen> - + <!-- already done earlier <para>Many packages use the name <command>cc</command> to call the C compiler. To satisfy those packages, create a symlink:</para> <screen><userinput remap="install">ln -sv gcc /usr/bin/cc</userinput></screen> - + --> <para>Add a compatibility symlink to enable building programs with Link Time Optimization (LTO):</para> |