Changeset 71cd9de for BOOK/final-system
- Timestamp:
- Oct 17, 2015, 3:01:41 PM (9 years ago)
- Branches:
- master, systemd
- Children:
- 9b4ea58
- Parents:
- e869c0f
- Location:
- BOOK/final-system
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/mips64-64/glibc.xml
re869c0f r71cd9de 53 53 href="../x86_64-64/glibc.xml" 54 54 xpointer="xpointer(//*[@os='l6'])"/> 55 56 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 57 href="../x86_64-64/glibc.xml" 58 xpointer="xpointer(//*[@os='l7'])"/> 59 60 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 61 href="../x86_64-64/glibc.xml" 62 xpointer="xpointer(//*[@os='l8'])"/> 55 63 56 64 <para>Now we will force Glibc to build as 64-bit instead of the default -
BOOK/final-system/multilib/glibc-64bit.xml
re869c0f r71cd9de 46 46 <filename class="directory">/lib64</filename>:</para> 47 47 48 <screen os="m2"><userinput>echo "libc_cv_rtlddir=/lib64" >> config.cache 49 echo "libc_cv_slibdir=/lib64" >> config.cache</userinput></screen> 48 <screen os="m2"><userinput>echo "libc_cv_slibdir=/lib64" >> config.cache</userinput></screen> 50 49 51 50 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" -
BOOK/final-system/ppc64-64/glibc.xml
re869c0f r71cd9de 53 53 href="../x86_64-64/glibc.xml" 54 54 xpointer="xpointer(//*[@os='l6'])"/> 55 56 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 57 href="../x86_64-64/glibc.xml" 58 xpointer="xpointer(//*[@os='l7'])"/> 59 60 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 61 href="../x86_64-64/glibc.xml" 62 xpointer="xpointer(//*[@os='l8'])"/> 55 63 56 64 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" … … 119 127 xpointer="xpointer(//*[@os='t'])"/> 120 128 121 <para>Now we can remove this symlink. We also need to correct the <command> 122 /usr/bin/ldd</command> script - if you look at this, you will see it references 123 not only the 32-bit linker, but also /lib64 where it thinks the 64-bit linker 124 is. The following <command>sed</command> will correct this:</para> 129 <para>Now we can remove this symlink:</para> 125 130 126 <screen><userinput>rm -v /lib/ld.so.1 127 sed -i.bak '/RTLDLIST/s%/ld.so.1 /lib64%%' /usr/bin/ldd</userinput></screen> 128 129 <para>Check the script to make sure the sed worked correctly, then delete 130 the backup.</para> 131 132 <screen><userinput>rm -v /usr/bin/ldd.bak</userinput></screen> 131 <screen><userinput>rm -v /lib/ld.so.1</userinput></screen> 133 132 134 133 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" -
BOOK/final-system/sparc64-64/glibc.xml
re869c0f r71cd9de 61 61 href="../x86_64-64/glibc.xml" 62 62 xpointer="xpointer(//*[@os='l6'])"/> 63 64 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 65 href="../x86_64-64/glibc.xml" 66 xpointer="xpointer(//*[@os='l7'])"/> 67 68 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 69 href="../x86_64-64/glibc.xml" 70 xpointer="xpointer(//*[@os='l8'])"/> 63 71 64 72 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" -
BOOK/final-system/x86_64-64/glibc.xml
re869c0f r71cd9de 49 49 <filename class="directory">/lib</filename>:</para> 50 50 51 <screen os="l6"><userinput>echo "libc_cv_rtlddir=/lib" >> config.cache 52 echo "libc_cv_slibdir=/lib" >> config.cache</userinput></screen> 51 <screen os="l6"><userinput>echo "libc_cv_slibdir=/lib" >> config.cache</userinput></screen> 52 53 <para os="l7">Modify the <command>ldd</command> rewrite script to remove 54 <filename class="directory">lib64</filename> and 55 <filename class="directory">libx32</filename> from RTLDLIST.</para> 56 57 <screen os="l8"><userinput>sed -i '/RTLDLIST/d' sysdeps/unix/sysv/linux/*/ldd-rewrite.sed</userinput></screen> 53 58 54 59 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" … … 127 132 xpointer="xpointer(//*[@os='t'])"/> 128 133 129 <para>Now we can remove this symlink. We also need to correct the <command> 130 /usr/bin/ldd</command> script - if you look at this, you will see it references 131 not only the 32-bit linker, but also /lib64 where it thinks the 64-bit linker 132 is. The following <command>sed</command> will correct this:</para> 134 <para>Now we can remove this symlink:</para> 133 135 134 <screen><userinput>rm -v /lib/ld-linux.so.2 135 sed -i.bak '/RTLDLIST/s%/ld-linux.so.2 /lib64%%' /usr/bin/ldd</userinput></screen> 136 137 <para>Check the script to make sure the sed worked correctly, then delete 138 the backup.</para> 139 140 <screen><userinput>rm -v /usr/bin/ldd.bak</userinput></screen> 136 <screen><userinput>rm -v /lib/ld-linux.so.2</userinput></screen> 141 137 142 138 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
Note:
See TracChangeset
for help on using the changeset viewer.