Changeset 69a6e63c for chapter06/gcc-pass2.xml
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.