Changeset 459d493
- Timestamp:
- 02/27/2022 03:36:55 PM (2 years ago)
- Branches:
- 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, 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:
- 83c258f
- Parents:
- cbd0a9a
- git-author:
- Xi Ruoyao <xry111@…> (02/26/2022 05:09:05 PM)
- git-committer:
- Xi Ruoyao <xry111@…> (02/27/2022 03:36:55 PM)
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/libstdc++.xml
rcbd0a9a r459d493 6 6 ]> 7 7 8 <sect1 id="ch-tools-libstdcpp -pass1" role="wrap">9 <?dbhtml filename="gcc-libstdc++ -pass1.html"?>8 <sect1 id="ch-tools-libstdcpp" role="wrap"> 9 <?dbhtml filename="gcc-libstdc++.html"?> 10 10 11 11 <sect1info condition="script"> … … 15 15 </sect1info> 16 16 17 <title>Libstdc++ from GCC-&gcc-version; , Pass 1</title>17 <title>Libstdc++ from GCC-&gcc-version;</title> 18 18 19 <indexterm zone="ch-tools-libstdcpp -pass1">19 <indexterm zone="ch-tools-libstdcpp"> 20 20 <primary sortas="a-GCC">GCC</primary> 21 21 <secondary>tools, libstdc++ pass 1</secondary> -
chapter06/gcc-pass2.xml
rcbd0a9a r459d493 63 63 ;; 64 64 esac</userinput></screen> 65 <!--66 <para>Fix an issue with GCC-10.1 when building with a cross67 compiler:</para>68 65 69 <screen><userinput remap="pre">patch -Np1 -i ../&gcc-cross-patch;</userinput></screen> 70 --> 66 <!-- https://gcc.gnu.org/PR100017 --> 67 <para>Fix an issue causing failure cross-compiling libstdc++:</para> 68 69 <screen><userinput remap="pre">sed 's/gnu++17/& -nostdinc++/' \ 70 -i libstdc++-v3/src/c++17/Makefile.in</userinput></screen> 71 72 <para>Override the building rule of libgcc and libstdc++ headers, to 73 allow building these libraries with POSIX threads support:</para> 74 75 <screen><userinput remap="pre">sed '/thread_header =/s/@.*@/gthr-posix.h/' \ 76 -i libgcc/Makefile.in libstdc++-v3/include/Makefile.in</userinput></screen> 77 71 78 <para>Create a separate build directory again:</para> 72 79 73 80 <screen><userinput remap="pre">mkdir -v build 74 81 cd build</userinput></screen> 75 76 <para>Create a symlink that allows libgcc to be built with posix threads77 support:</para>78 79 <screen><userinput remap="pre">mkdir -pv $LFS_TGT/libgcc80 ln -s ../../../libgcc/gthr-posix.h $LFS_TGT/libgcc/gthr-default.h</userinput></screen>81 82 82 83 <para>Before starting to build GCC, remember to unset any environment … … 90 91 --prefix=/usr \ 91 92 CC_FOR_TARGET=$LFS_TGT-gcc \ 93 CXX_FOR_TARGET=$LFS_TGT-g++ \ 94 LDFLAGS_FOR_TARGET=-L$PWD/$LFS_TGT/libgcc \ 92 95 --with-build-sysroot=$LFS \ 93 96 --enable-initfini-array \ … … 100 103 --disable-libssp \ 101 104 --disable-libvtv \ 102 --disable-libstdcxx \103 105 --enable-languages=c,c++</userinput></screen> 104 106 -
chapter07/chapter07.xml
rcbd0a9a r459d493 18 18 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="creatingdirs.xml"/> 19 19 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="createfiles.xml"/> 20 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libstdc++-pass2.xml"/>21 20 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gettext.xml"/> 22 21 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bison.xml"/>
Note:
See TracChangeset
for help on using the changeset viewer.