r187 - trunk/BOOK/chapter03

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Sun Feb 13 05:02:30 PST 2005


Author: manuel
Date: 2005-02-13 06:02:29 -0700 (Sun, 13 Feb 2005)
New Revision: 187

Modified:
   trunk/BOOK/chapter03/settingenviron.xml
Log:
Added build envars to settingenviroment.xml.

Modified: trunk/BOOK/chapter03/settingenviron.xml
===================================================================
--- trunk/BOOK/chapter03/settingenviron.xml	2005-02-13 12:19:52 UTC (rev 186)
+++ trunk/BOOK/chapter03/settingenviron.xml	2005-02-13 13:02:29 UTC (rev 187)
@@ -43,6 +43,16 @@
 LC_ALL=POSIX
 PATH=/tools/bin:/bin:/usr/bin
 export HLFS LC_ALL PATH</literal>
+
+<literal condition="glibc">target=$(uname -m)-tools-linux-gnu
+ldso=/tools/lib/ld-linux.so.2
+clocale=--enable-clocale=gnu
+disable_nls=</literal>
+<literal condition="uclibc">target=$(uname -m)-tools-linux-uclibc
+ldso=/tools/lib/ld-uClibc.so.0
+clocale="--disable-clocale --enable-sjlj-exceptions"
+disable_nls=--disable-nls</literal>
+<literal>export target ldso clocale disable_nls</literal>
 EOF</userinput></screen>
 
 <para>The <command>set +h</command> command turns off
@@ -57,7 +67,6 @@
 they are available without remembering a previous version of the same
 program in a different location.</para>
 
-<beginpage/>
 <para>Setting the user file-creation mask (umask) to 022 ensures that newly
 created files and directories are only writable by their owner, but
 are readable and executable by anyone (assuming default modes are used
@@ -85,6 +94,23 @@
 the host are being used when they should not be used any
 longer.</para>
 
+<para>The <parameter>*-tools-*</parameter> is used in the vendor field instead 
+of the traditional <parameter>*-pc-*</parameter> to distinguish it from the host's 
+tool chain, mainly as a precaution. This also tricks the new tool chain to think we are 
+cross compiling even if we are not.</para>
+
+<para>The <envar>${clocale}</envar> variable is used when building the native 
+GCC. <phrase condition="uclibc">The <parameter>--enable-sjlj-exceptions</parameter>
+is needed for C++ exception handling to work.</phrase></para>
+
+<para condition="glibc">English users who wish to have a minimalistic system can define
+<parameter>disable_nls=--disable-nls</parameter> to disable native language support in
+applications, and skip the installation of Gettext.</para>
+
+<para condition="uclibc">The <envar>${disable_nls}</envar> variable is used because 
+native language support is not complete and buggy. It will be used in configure arguments
+later.</para>
+
 <para>Finally, to have the environment fully prepared for building the
 temporary tools, source the just-created user profile:</para>
 




More information about the hlfs-dev mailing list