Changeset 0ebda11 for chapter08/glibc.xml
- Timestamp:
- 05/14/2021 10:47:43 AM (3 years ago)
- Branches:
- ml-11.0, multilib
- Children:
- 2606939
- Parents:
- 51c01bff
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/glibc.xml
r51c01bff r0ebda11 73 73 --enable-stack-protector=strong \ 74 74 --with-headers=/usr/include \ 75 libc_cv_slibdir=/usr/lib</userinput></screen> 75 libc_cv_slibdir=/usr/lib \ 76 libc_cv_rtlddir=/usr/lib</userinput></screen> 76 77 <screen arch="ml_32,ml_x32,ml_all"><userinput remap="configure">../configure --prefix=/usr \ 77 78 --disable-werror \ … … 80 81 --with-headers=/usr/include \ 81 82 --enable-multi-arch \ 82 libc_cv_slibdir=/usr/lib</userinput></screen> 83 libc_cv_slibdir=/usr/lib \ 84 libc_cv_rtlddir=/usr/lib</userinput></screen> 83 85 84 86 <variablelist> … … 125 127 <para>This variable sets the correct library for all 126 128 systems. We do not want lib64 to be used.</para> 129 </listitem> 130 </varlistentry> 131 132 <varlistentry> 133 <term><parameter>libc_cv_rtlddir=/usr/lib</parameter></term> 134 <listitem> 135 <para>Fix hardcoded path to the executable loader in the 136 <command>ldd</command> script.</para> 127 137 </listitem> 128 138 </varlistentry> … … 222 232 223 233 <screen><userinput remap="install">make install</userinput></screen> 234 235 <para>Fix hardcoded path to the executable loader in 236 <command>ldd</command> script:</para> 237 238 <screen><userinput remap="install">sed '/RTLDLIST=/s@/usr@@g' -i /usr/bin/ldd</userinput></screen> 224 239 225 240 <para>Install the configuration file and runtime directory for … … 483 498 484 499 <para>Now recompile for m32. The extracted source can be 485 reused but needs to cleaned before installing the m32500 reused but needs to be cleaned before installing the m32 486 501 version of Glibc.</para> 487 502 … … 502 517 --with-headers=/usr/include \ 503 518 --enable-multi-arch \ 504 --libdir=&usr-lib-m32; \ 505 --libexecdir=&usr-lib-m32; \ 506 libc_cv_slibdir=&usr-lib-m32;</userinput></screen> 519 --libdir=/usr/lib32 \ 520 --libexecdir=/usr/lib32 \ 521 libc_cv_slibdir=/usr/lib32 \ 522 libc_cv_rtlddir=/usr/lib32</userinput></screen> 507 523 508 524 <para>Compile the package:</para> … … 513 529 514 530 <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install 515 cp -a DESTDIR &usr-lib-m32;/* &usr-lib-m32;/531 cp -a DESTDIR/usr/lib32/* /usr/lib32/ 516 532 install -vm644 DESTDIR/usr/include/gnu/{lib-names,stubs}-32.h \ 517 /usr/include/gnu/ 518 ln -svf ..&lib-m32;/ld-linux.so.2 /lib/ld-linux.so.2</userinput></screen> 533 /usr/include/gnu/</userinput></screen> 534 <!-- no longer required as they are created in chap5 535 ln -svf ../lib32/ld-linux.so.2 /lib/ld-linux.so.2 536 --> 519 537 520 538 <para>Add the library name to the dynamic loader config:</para> 521 539 522 <screen role="install"><userinput>echo " &usr-lib-m32;" >> /etc/ld.so.conf</userinput></screen>540 <screen role="install"><userinput>echo "/usr/lib32" >> /etc/ld.so.conf</userinput></screen> 523 541 524 542 <caution> … … 557 575 558 576 <para>Now recompile for mx32. The extracted source can be 559 reused but needs to cleaned before installing the mx32577 reused but needs to be cleaned before installing the mx32 560 578 version of Glibc.</para> 561 579 … … 574 592 --build=$(../scripts/config.guess) \ 575 593 --enable-kernel=&min-kernel; \ 576 --with-headers= $LFS/usr/include\594 --with-headers=/usr/include \ 577 595 --enable-multi-arch \ 578 --libdir=&usr-lib-mx32; \ 579 --libexecdir=&usr-lib-mx32; \ 580 libc_cv_slibdir=&usr-lib-mx32;</userinput></screen> 596 --libdir=/usr/libx32 \ 597 --libexecdir=/usr/libx32 \ 598 libc_cv_slibdir=/usr/libx32 \ 599 libc_cv_rtlddir=/usr/libx32</userinput></screen> 581 600 582 601 <para>Compile the package:</para> … … 587 606 588 607 <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install 589 cp -a DESTDIR &usr-lib-mx32;/* &usr-lib-mx32;/608 cp -a DESTDIR/usr/libx32/* /usr/libx32/ 590 609 install -vm644 DESTDIR/usr/include/gnu/{lib-names,stubs}-x32.h \ 591 /usr/include/gnu/ 592 ln -svf ..&lib-mx32;/ld-linux-x32.so.2 /lib/ld-linux-x32.so.2</userinput></screen> 593 610 /usr/include/gnu/</userinput></screen> 611 <!-- no longer required as they are created in chap5 612 ln -svf ../libx32/ld-linux-x32.so.2 /lib/ld-linux-x32.so.2 613 --> 594 614 <para>Add the library name to the dynamic loader config:</para> 595 615 596 <screen role="install"><userinput>echo " &usr-lib-mx32;" >> /etc/ld.so.conf</userinput></screen>616 <screen role="install"><userinput>echo "/usr/libx32" >> /etc/ld.so.conf</userinput></screen> 597 617 598 618 <caution>
Note:
See TracChangeset
for help on using the changeset viewer.