Changeset 6e88633 for chapter05/gcc-pass2.xml
- Timestamp:
- 12/03/2008 10:46:04 PM (15 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, 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:
- 4e82d47
- Parents:
- b0e1dc8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/gcc-pass2.xml
rb0e1dc8 r6e88633 100 100 against the new Glibc. Issue:</para> 101 101 102 <screen><userinput remap="pre">for file in $(find gcc/config -name linux64.h -o -name linux.h) 102 <screen><userinput remap="pre">for file in \ 103 $(find gcc/config -name linux64.h -o -name linux.h -o -name sysv4.h) 103 104 do 104 105 cp -uv $file{,.orig} … … 113 114 <para>In case the above seems hard to follow, let's break it down a bit. 114 115 First we find all the files under the gcc/config directory that are named 115 either <filename>linux.h</filename> or <filename>linux64.h</filename>. 116 either <filename>linux.h</filename>, <filename>linux64.h</filename> or 117 <filename>sysv4.h</filename>. 116 118 For each file found, we copy it to a file of the same name but with an added 117 119 suffix of <quote>.orig</quote>. Then the first sed expression prepends … … 125 127 </para> 126 128 129 <para>Unsetting the multlib spec for GCC ensures that it 130 won't attempt to link against libraries on the host:</para> 131 132 <screen><userinput remap="pre">for file in $(find gcc/config -name t-linux64) ; do \ 133 cp -v $file{,.orig} 134 sed '/MULTILIB_OSDIRNAMES/d' $file.orig > $file 135 done</userinput></screen> 136 127 137 <para>As in the first build of GCC it requires the GMP and MPFR packages. 128 138 Unpack the tarballs and move them into the required directory names:</para> … … 147 157 --enable-shared --enable-threads=posix \ 148 158 --enable-__cxa_atexit --enable-languages=c,c++ \ 149 --disable-libstdcxx-pch --disable-bootstrap</userinput></screen> 159 --disable-libstdcxx-pch --disable-multilib \ 160 --disable-bootstrap</userinput></screen> 150 161 151 162 <variablelist>
Note:
See TracChangeset
for help on using the changeset viewer.