Changeset 6d4c909 for BOOK/cross-tools
- Timestamp:
- Feb 21, 2006, 1:56:25 AM (19 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- ad0c7e6
- Parents:
- f0ed7ed
- Location:
- BOOK/cross-tools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/common/binutils.xml
rf0ed7ed r6d4c909 130 130 <screen os="bi"><userinput>make install</userinput></screen> 131 131 132 <para os="bj">Copy <filename class="headerfile">libiberty.h</filename> file to132 <para os="bj">Copy the <filename class="headerfile">libiberty.h</filename> file to 133 133 <filename class="directory">/tools/include</filename> directory:</para> 134 134 -
BOOK/cross-tools/common/cflags.xml
rf0ed7ed r6d4c909 19 19 unset CXXFLAGS</userinput></screen> 20 20 21 <para>Now we willadd these to <filename>~/.bashrc</filename>, just in21 <para>Now add these to <filename>~/.bashrc</filename>, just in 22 22 case you have to exit and restart building later:</para> 23 23 -
BOOK/cross-tools/common/glibc.xml
rf0ed7ed r6d4c909 27 27 risk.</para> 28 28 29 <para os="db">We will disable the linking to 30 <filename>libgcc_eh</filename>:</para> 29 <para os="db">Disable linking to <filename>libgcc_eh</filename>:</para> 31 30 32 31 <screen os="dc"><userinput>patch -Np1 -i ../&glibc-libgcc_eh-patch;</userinput></screen> … … 48 47 xpointer="xpointer(//*[@os='f'])"/> 49 48 50 <para os="dd">For NPTL enabled systems we will need to add the following lines to51 <filename>config.cache</filename>:</para>49 <para os="dd">For NPTL enabled systems the following lines need 50 to be added to <filename>config.cache</filename>:</para> 52 51 53 52 <screen os="de"><userinput>echo "libc_cv_forced_unwind=yes" > config.cache … … 73 72 <term><parameter>BUILD_CC="gcc"</parameter></term> 74 73 <listitem> 75 <para>This sets G LIBCto use the current compiler on our system. This is76 used to create the tools G LIBCuses durings it's build.</para>74 <para>This sets Glibc to use the current compiler on our system. This is 75 used to create the tools Glibc uses durings it's build.</para> 77 76 </listitem> 78 77 </varlistentry> … … 81 80 <term><parameter>CC="${LFS_TARGET}-gcc"</parameter></term> 82 81 <listitem> 83 <para>This forces G LIBCto use the GCC complier that we made for our target82 <para>This forces Glibc to use the GCC complier that we made for our target 84 83 architecture.</para> 85 84 </listitem> … … 89 88 <term><parameter>AR="${LFS_TARGET}-ar"</parameter></term> 90 89 <listitem> 91 <para>This forces G LIBCto use the AR utility we made for our target90 <para>This forces Glibc to use the AR utility we made for our target 92 91 architecture.</para> 93 92 </listitem> … … 97 96 <term><parameter>RANLIB="${LFS_TARGET}-ranlib"</parameter></term> 98 97 <listitem> 99 <para>This forces G LIBCto use the RANLIB utility we made for our target98 <para>This forces Glibc to use the RANLIB utility we made for our target 100 99 architecture.</para> 101 100 </listitem> … … 113 112 <term><parameter>--enable-add-ons</parameter></term> 114 113 <listitem> 115 <para>This tells G LIBC to utilize all add-on's that are avaialble.</para>114 <para>This tells Glibc to utilize all add-ons that are avaialble.</para> 116 115 </listitem> 117 116 </varlistentry> … … 120 119 <term><parameter>--with-tls</parameter></term> 121 120 <listitem> 122 <para>This tells G LIBCto use Thread Local Storage.</para>121 <para>This tells Glibc to use Thread Local Storage.</para> 123 122 </listitem> 124 123 </varlistentry> … … 127 126 <term><parameter>--with-__thread</parameter></term> 128 127 <listitem> 129 <para>This tells G LIBCto use use the __thread for libc and128 <para>This tells Glibc to use use the __thread for libc and 130 129 libpthread builds.</para> 131 130 </listitem> … … 135 134 <term><parameter>--with-binutils=/cross-tools/bin</parameter></term> 136 135 <listitem> 137 <para>This tells G LIBCto use the Binutils that are specific to136 <para>This tells Glibc to use the Binutils that are specific to 138 137 our target architecture.</para> 139 138 </listitem> … … 143 142 <term><parameter>--cache-file=config.cache</parameter></term> 144 143 <listitem> 145 <para>This tells G LIBCto utilize a premade cache file.</para>144 <para>This tells Glibc to utilize a premade cache file.</para> 146 145 </listitem> 147 146 </varlistentry> -
BOOK/cross-tools/x86/gcc-static.xml
rf0ed7ed r6d4c909 24 24 and no Threads</title> 25 25 26 <para os="aa"> We willmake a couple of essential adjustments to the specs file26 <para os="aa">First make a couple of essential adjustments to the specs file 27 27 to point to use our build environment:</para> 28 28 29 29 <screen os="ab"><userinput>patch -Np1 -i ../&gcc-specs-patch;</userinput></screen> 30 30 31 <para os="ac">To make sure that we use the proper syntax for a couple of tools,32 weapply the following patch:</para>31 <para os="ac">To make sure that a couple of tools use the proper syntax, 32 apply the following patch:</para> 33 33 34 34 <screen os="ad"><userinput>patch -Np1 -i ../&gcc-posix-patch;</userinput></screen> … … 41 41 <screen os="af"><userinput>patch -Np1 -i ../&gcc-cross_search-patch;</userinput></screen> 42 42 43 <para os="ag">Now we will need to setup ourStartFile Spec to the correct library43 <para os="ag">Now setup the StartFile Spec to the correct library 44 44 location:</para> 45 45 … … 48 48 #define STARTFILE_PREFIX_SPEC \"/tools/lib/\"" >> gcc/config/linux.h</userinput></screen> 49 49 50 <para os="ai">Now we willalter <command>gcc</command>'s c preprocessors default50 <para os="ai">Now alter <command>gcc</command>'s c preprocessors default 51 51 include search path to use <filename class="directory">/tools</filename> only:</para> 52 52 … … 102 102 <listitem> 103 103 <para>This will prevent GCC from finding the multi-thread 104 include files, since we haven't created themfor this architecture105 yet. Wewill be able to find the multi-thread information after106 we create the Glibc headers.</para>104 include files, since they haven't been created for this architecture 105 yet. GCC will be able to find the multi-thread information after 106 the Glibc headers are created.</para> 107 107 </listitem> 108 108 </varlistentry> -
BOOK/cross-tools/x86/glibc-headers.xml
rf0ed7ed r6d4c909 24 24 25 25 <para os="s1">The following sed removes a dependency of gcc 3.4.x from 26 the glibc we are using in cross-lfs. The reason we are changing itis27 because this only installs the headers, no compiling takes place. In the28 next glibc chapter, we use the gcc that's built right after this chapter.</para>26 the glibc used in cross-lfs. The reason it is changed is 27 because only the headers are being installed now; no compiling takes place. 28 In the next glibc build, the gcc that's built right after this section will be used.</para> 29 29 30 30 <screen os="s2"><userinput>cp configure{,.orig} … … 75 75 <term><parameter>CC=gcc</parameter></term> 76 76 <listitem> 77 <para>Tells G LIBC to use the hosts GCC compiler.</para>77 <para>Tells Glibc to use the host's GCC compiler.</para> 78 78 </listitem> 79 79 </varlistentry> … … 123 123 <term><parameter>--with-binutils=/cross-tools/${LFS_TARGET}/bin</parameter></term> 124 124 <listitem> 125 <para>This tells G LIBC to use the binutils for ourspecific target architecture.</para>125 <para>This tells Glibc to use the binutils for the specific target architecture.</para> 126 126 </listitem> 127 127 </varlistentry> … … 133 133 <screen os="cd"><userinput>make install-headers</userinput></screen> 134 134 135 <para os="ce">Some files aren't installed by the above command, so we will copy the additional header files we need:</para>135 <para os="ce">Some files aren't installed by the above command, so copy the additional header files that are needed:</para> 136 136 137 <para os="cf">First we willcopy a common file over to <filename137 <para os="cf">First copy a common file over to <filename 138 138 class="directory">/tools/include</filename>:</para> 139 139 … … 141 141 cp bits/stdio_lim.h /tools/include/bits</userinput></screen> 142 142 143 <para os="ch">Now we willcreate a blank stub file:</para>143 <para os="ch">Now create a blank stub file:</para> 144 144 145 145 <screen os="ci"><userinput>touch /tools/include/gnu/stubs.h</userinput></screen> 146 146 147 <para os="cj">For NPTL weuse the following command:</para>147 <para os="cj">For NPTL use the following command:</para> 148 148 149 149 <screen os="ck"><userinput>cp ../glibc-&glibc-version;/nptl/sysdeps/pthread/pthread.h /tools/include/</userinput></screen> 150 150 151 <para os="cl">Now wecopy the architecture specific header over:</para>151 <para os="cl">Now copy the architecture specific header over:</para> 152 152 153 153 <screen os="cm"><userinput>cp ../glibc-&glibc-version;/nptl/sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h /tools/include/bits/</userinput></screen>
Note:
See TracChangeset
for help on using the changeset viewer.