Changeset 69a6e63c
- Timestamp:
- 03/03/2022 04:36:02 PM (2 years ago)
- Branches:
- arm
- Children:
- bd36dc5
- Parents:
- 3ef45bc
- git-author:
- Xi Ruoyao <xry111@…> (02/26/2022 05:09:05 PM)
- git-committer:
- William Harrington <kb0iic@…> (03/03/2022 04:36:02 PM)
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/libstdc++.xml
r3ef45bc r69a6e63c 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
r3ef45bc r69a6e63c 68 68 esac</userinput></screen> 69 69 70 <!-- https://gcc.gnu.org/PR100017 --> 71 <para>Fix an issue causing failure cross-compiling libstdc++:</para> 72 73 <screen><userinput remap="pre">sed 's/gnu++17/& -nostdinc++/' \ 74 -i libstdc++-v3/src/c++17/Makefile.in</userinput></screen> 75 76 <para>Override the building rule of libgcc and libstdc++ headers, to 77 allow building these libraries with POSIX threads support:</para> 78 79 <screen><userinput remap="pre">sed '/thread_header =/s/@.*@/gthr-posix.h/' \ 80 -i libgcc/Makefile.in libstdc++-v3/include/Makefile.in</userinput></screen> 81 70 82 <para>Create a separate build directory again:</para> 71 83 72 84 <screen><userinput remap="pre">mkdir -v build 73 85 cd build</userinput></screen> 74 75 <para>Create a symlink that allows libgcc to be built with posix threads76 support:</para>77 78 <screen><userinput remap="pre">mkdir -pv $LFS_TGT/libgcc79 ln -s ../../../libgcc/gthr-posix.h $LFS_TGT/libgcc/gthr-default.h</userinput></screen>80 86 81 87 <para>Before starting to build GCC, remember to unset any environment … … 89 95 --prefix=/usr \ 90 96 CC_FOR_TARGET=$LFS_TGT-gcc \ 97 CXX_FOR_TARGET=$LFS_TGT-g++ \ 98 LDFLAGS_FOR_TARGET=-L$PWD/$LFS_TGT/libgcc \ 91 99 --with-build-sysroot=$LFS \ 92 100 --enable-initfini-array \ … … 99 107 --disable-libssp \ 100 108 --disable-libvtv \ 101 --disable-libstdcxx \102 109 --enable-languages=c,c++</userinput></screen> 103 110 -
chapter07/chapter07.xml
r3ef45bc r69a6e63c 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.