Changeset ee1a413 for chapter05/gcc-pass2.xml
- Timestamp:
- 04/07/2019 09:47:30 AM (5 years ago)
- Branches:
- multilib-10.1
- Children:
- a23757b
- Parents:
- 7d9f881
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/gcc-pass2.xml
r7d9f881 ree1a413 94 94 esac</userinput></screen> 95 95 96 <para arch="m ultilib">Change the default directory name for 64-bit96 <para arch="ml_32,ml_x32,ml_all">Change the default directory name for 64-bit 97 97 libraries to <quote>lib</quote>:</para> 98 98 99 <screen arch="m ultilib"><userinput remap="pre">sed -e '/m64=/s/lib64/lib/' \99 <screen arch="ml_32,ml_x32,ml_all"><userinput remap="pre">sed -e '/m64=/s/lib64/lib/' \ 100 100 -i.orig gcc/config/i386/t-linux64 101 101 cat > gcc/config/i386/t-linux64 <<"EOF" … … 112 112 required directory names:</para> 113 113 114 <para arch="m ultilib">As in the first build of GCC it requires the GMP,114 <para arch="ml_32,ml_x32,ml_all">As in the first build of GCC it requires the GMP, 115 115 ISL, MPFR, and MPC packages. Unpack the tarballs and move them into the 116 116 required directory names:</para> … … 122 122 tar -xf ../mpc-&mpc-version;.tar.gz 123 123 mv -v mpc-&mpc-version; mpc</userinput></screen> 124 <screen arch="m ultilib"><userinput remap="pre">tar -xf ../mpfr-&mpfr-version;.tar.xz124 <screen arch="ml_32,ml_x32,ml_all"><userinput remap="pre">tar -xf ../mpfr-&mpfr-version;.tar.xz 125 125 mv -v mpfr-&mpfr-version; mpfr 126 126 tar -xf ../gmp-&gmp-version;.tar.xz … … 132 132 133 133 <!-- Following patch might be obsolete with gcc >= 8.2.1 --> 134 <para arch="m ultilib">Fix an issue with isl-&isl-version;:</para>135 136 <screen arch="m ultilib"><userinput remap="pre">sed -e "/#include <isl\/schedule_node.h>/ a#include <isl/id.h>\n#include <isl/space.h>" \134 <para arch="ml_32,ml_x32,ml_all">Fix an issue with isl-&isl-version;:</para> 135 136 <screen arch="ml_32,ml_x32,ml_all"><userinput remap="pre">sed -e "/#include <isl\/schedule_node.h>/ a#include <isl/id.h>\n#include <isl/space.h>" \ 137 137 -i gcc/graphite.h</userinput></screen> 138 138 … … 161 161 --disable-libgomp</userinput></screen> 162 162 163 <screen arch="multilib"><userinput remap="configure">CC=$LFS_TGT-gcc \ 163 <screen arch="ml_32,ml_x32,ml_all"><userinput remap="configure">mlist="m64"</userinput> 164 <userinput arch="ml_32,ml_all" remap="configure">mlist="$mlist,m32"</userinput> 165 <userinput arch="ml_x32,ml_all" remap="configure">mlist="$mlist,mx32"</userinput> 166 <userinput remap="configure">CC=$LFS_TGT-gcc \ 164 167 CXX=$LFS_TGT-g++ \ 165 168 AR=$LFS_TGT-ar \ … … 172 175 --disable-libstdcxx-pch \ 173 176 --enable-multilib \ 174 --with-multilib-list= m32,m64,mx32\177 --with-multilib-list=$mlist \ 175 178 --with-system-zlib \ 176 179 --disable-bootstrap \ … … 245 248 246 249 247 <para arch="m ultilib">Repeat the test for 32-bit:</para>248 249 <screen arch="m ultilib"><userinput>cc -m32 dummy.c250 <para arch="ml_32,ml_all">Repeat the test for 32-bit:</para> 251 252 <screen arch="ml_32,ml_all"><userinput>cc -m32 dummy.c 250 253 readelf -l a.out | grep ': /tools'</userinput></screen> 251 254 252 <para arch="m ultilib">In this case, the output shoud be:</para>253 254 <screen arch="m ultilib"><computeroutput>[Requesting program interpreter: /tools/lib/ld-linux.so.2]</computeroutput></screen>255 256 <para arch="m ultilib">Repeat the test for x32-bit:</para>257 258 <screen arch="m ultilib"><userinput>cc -mx32 dummy.c255 <para arch="ml_32,ml_all">In this case, the output shoud be:</para> 256 257 <screen arch="ml_32,ml_all"><computeroutput>[Requesting program interpreter: /tools/lib/ld-linux.so.2]</computeroutput></screen> 258 259 <para arch="ml_x32,ml_all">Repeat the test for x32-bit:</para> 260 261 <screen arch="ml_x32,ml_all"><userinput>cc -mx32 dummy.c 259 262 readelf -l a.out | grep ': /tools'</userinput></screen> 260 263 261 <para arch="m ultilib">In this case, the output shoud be:</para>262 263 <screen arch="m ultilib"><computeroutput>[Requesting program interpreter: /tools/lib/ld-linux-x32.so.2]</computeroutput></screen>264 <para arch="ml_x32,ml_all">In this case, the output shoud be:</para> 265 266 <screen arch="ml_x32,ml_all"><computeroutput>[Requesting program interpreter: /tools/lib/ld-linux-x32.so.2]</computeroutput></screen> 264 267 265 268 <para arch="default">Note that the dynamic linker will be
Note:
See TracChangeset
for help on using the changeset viewer.