- Timestamp:
- Oct 17, 2015, 3:01:45 PM (9 years ago)
- Branches:
- sysvinit
- Children:
- baaf11d
- Parents:
- 65db39d
- git-author:
- William Harrington <kb0iic@…> (10/17/15 15:01:41)
- git-committer:
- William Harrington <kb0iic@…> (10/17/15 15:01:45)
- Location:
- BOOK
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/64/glibc.xml
r65db39d r877cfcd 37 37 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 38 38 href="../common/glibc.xml" 39 xpointer="xpointer(//*[@os='dd'])"/>40 41 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"42 href="../common/glibc.xml"43 xpointer="xpointer(//*[@os='de'])"/>44 45 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"46 href="../common/glibc.xml"47 39 xpointer="xpointer(//*[@os='g'])"/> 48 40 … … 53 45 --disable-profile --enable-kernel=&glibc-kernel-version; \ 54 46 --with-binutils=/cross-tools/bin --with-headers=/tools/include \ 55 --enable-obsolete-rpc --cache-file=config.cache</userinput></screen>47 --enable-obsolete-rpc</userinput></screen> 56 48 57 49 <variablelist os="dg"> … … 93 85 href="../common/glibc.xml" 94 86 xpointer="xpointer(//*[@os='dg9'])"/> 95 96 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"97 href="../common/glibc.xml"98 xpointer="xpointer(//*[@os='dg10'])"/>99 87 100 88 </variablelist> -
BOOK/cross-tools/common/glibc.xml
r65db39d r877cfcd 35 35 xpointer="xpointer(//*[@os='f'])"/> 36 36 37 <para os="dd">Add the following to <filename>config.cache</filename>38 to disable ssp when building Glibc:</para>39 40 <screen os="de"><userinput>echo "libc_cv_ssp=no" > config.cache</userinput></screen>41 42 37 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 43 38 href="../../final-system/common/glibc.xml" … … 50 45 --disable-profile --enable-kernel=&glibc-kernel-version; \ 51 46 --with-binutils=/cross-tools/bin --with-headers=/tools/include \ 52 --enable-obsolete-rpc --cache-file=config.cache</userinput></screen>47 --enable-obsolete-rpc</userinput></screen> 53 48 54 49 <variablelist os="dg"> … … 129 124 </varlistentry> 130 125 131 <varlistentry os="dg10">132 <term><parameter>--cache-file=config.cache</parameter></term>133 <listitem>134 <para>This tells Glibc to utilize a premade cache file.</para>135 </listitem>136 </varlistentry>137 138 126 </variablelist> 139 127 -
BOOK/cross-tools/mips64/glibc-n32.xml
r65db39d r877cfcd 35 35 xpointer="xpointer(//*[@os='f'])"/> 36 36 37 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"38 href="../multilib/glibc.xml"39 xpointer="xpointer(//*[@os='dd'])"/>40 41 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"42 href="../multilib/glibc.xml"43 xpointer="xpointer(//*[@os='de'])"/>44 45 37 <para os="n1">Configure Glibc to install its 32-bit libraries into <filename 46 38 class="directory">/tools/lib32</filename>:</para> 47 39 48 <screen os="n2"><userinput>echo "libc_cv_rtlddir=/tools/lib32" >> config.cache 49 echo "libc_cv_slibdir=/tools/lib32" >> config.cache</userinput></screen> 40 <screen os="n2"><userinput>echo "libc_cv_slibdir=/tools/lib32" >> config.cache</userinput></screen> 50 41 51 42 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" -
BOOK/cross-tools/multilib/glibc-64bit.xml
r65db39d r877cfcd 35 35 xpointer="xpointer(//*[@os='f'])"/> 36 36 37 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"38 href="glibc.xml"39 xpointer="xpointer(//*[@os='dd'])"/>40 41 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"42 href="glibc.xml"43 xpointer="xpointer(//*[@os='de'])"/>44 45 37 <para os="n1">Configure Glibc to install its 64-bit libraries into <filename 46 38 class="directory">/tools/lib64</filename>:</para> 47 39 48 <screen os="n2"><userinput>echo "libc_cv_rtlddir=/tools/lib64" >> config.cache 49 echo "libc_cv_slibdir=/tools/lib64" >> config.cache</userinput></screen> 40 <screen os="n2"><userinput>echo "libc_cv_slibdir=/tools/lib64" >> config.cache</userinput></screen> 50 41 51 42 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" -
BOOK/cross-tools/multilib/glibc.xml
r65db39d r877cfcd 37 37 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 38 38 href="../common/glibc.xml" 39 xpointer="xpointer(//*[@os='dd'])"/>40 41 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"42 href="../common/glibc.xml"43 xpointer="xpointer(//*[@os='de'])"/>44 45 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"46 href="../common/glibc.xml"47 39 xpointer="xpointer(//*[@os='g'])"/> 48 40 … … 53 45 --disable-profile --enable-kernel=&glibc-kernel-version; \ 54 46 --with-binutils=/cross-tools/bin --with-headers=/tools/include \ 55 --enable-obsolete-rpc --cache-file=config.cache</userinput></screen>47 --enable-obsolete-rpc</userinput></screen> 56 48 57 49 <variablelist os="dg"> … … 98 90 xpointer="xpointer(//*[@os='dg9'])"/> 99 91 100 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"101 href="../common/glibc.xml"102 xpointer="xpointer(//*[@os='dg10'])"/>103 104 92 </variablelist> 105 93 -
BOOK/cross-tools/sparc64-64/glibc.xml
r65db39d r877cfcd 34 34 href="../common/glibc.xml" 35 35 xpointer="xpointer(//*[@os='f'])"/> 36 37 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"38 href="../common/glibc.xml"39 xpointer="xpointer(//*[@os='dd'])"/>40 41 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"42 href="../sparc64/glibc-64bit.xml"43 xpointer="xpointer(//*[@os='de'])"/>44 36 45 37 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" -
BOOK/cross-tools/sparc64/glibc-64bit.xml
r65db39d r877cfcd 35 35 xpointer="xpointer(//*[@os='f'])"/> 36 36 37 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 38 href="../common/glibc.xml" 39 xpointer="xpointer(//*[@os='dd'])"/> 37 <para os="dd">Add the following variables to <filename>config.cache</filename> so they are set properly:</para> 40 38 41 39 <screen os="de"><userinput>cat > config.cache << "EOF" … … 44 42 libc_cv_sparc64_tls=yes 45 43 libc_cv_gnu89_inline=yes 46 libc_cv_ssp=no47 44 EOF</userinput></screen> 48 45 -
BOOK/final-system/mips64-64/glibc.xml
r65db39d r877cfcd 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
r65db39d r877cfcd 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
r65db39d r877cfcd 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
r65db39d r877cfcd 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
r65db39d r877cfcd 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" -
BOOK/packages.ent
r65db39d r877cfcd 178 178 <!ENTITY gettext-home "&gnu-software;gettext"> 179 179 180 <!ENTITY glibc-version "2.2 0">181 <!ENTITY glibc-size "12, 284KB">180 <!ENTITY glibc-version "2.22"> 181 <!ENTITY glibc-size "12,969 KB"> 182 182 <!ENTITY glibc-url "&gnu;glibc/glibc-&glibc-version;.tar.xz"> 183 <!ENTITY glibc-md5 " 948a6e06419a01bd51e97206861595b0">183 <!ENTITY glibc-md5 "e51e02bf552a0a1fbbdc948fb2f5e83c"> 184 184 <!ENTITY glibc-home "&gnu-software;libc/"> 185 185 <!ENTITY glibc-ld-name "ld-&glibc-version;.so">
Note:
See TracChangeset
for help on using the changeset viewer.