Added --enable-clocale=gnu to chapter 06 -gcc

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2087 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Gerard Beekmans 2002-09-12 17:15:29 +00:00
parent b803c015bf
commit f9d25dd2c5
3 changed files with 16 additions and 1 deletions

View File

@ -53,6 +53,10 @@
</itemizedlist> </itemizedlist>
</para></listitem> </para></listitem>
<listitem><para>September 12th, 2002 [gerard]: Chapter 06 - GCC: Added the
<emphasis>--enable-clocale=gnu</emphasis> option to ensure the proper
locale mode is used by the C++ libraries.</para></listitem>
<listitem><para>September 11th, 2002 [timothy]: Preface: Grammatic <listitem><para>September 11th, 2002 [timothy]: Preface: Grammatic
changes.</para></listitem> changes.</para></listitem>

View File

@ -5,5 +5,15 @@
in C++ shared libraries and C++ programs that are interoperable with other in C++ shared libraries and C++ programs that are interoperable with other
linux distributions.</para> linux distributions.</para>
<para><userinput>--enable-clocale=gnu:</userinput> There is a risk that
some people will build ABI incompatible C++ libraries if they didn't install
all the glibc localedata. Using --enable-clocale=gnu ensures that the "right
thing" is done in all cases. If you don't want to use this option and don't
want to build all the locales, then at least make sure you installed the
<emphasis>de_DE</emphasis> locale with Glibc, since that's the specific locale
GCC will check for to determine which locale mode to use (if de_DE is
found, <emphasis>gnu</emphasis> mode is used, which is the corrent one to
use).</para>
</sect2> </sect2>

View File

@ -27,7 +27,8 @@ mkdir ../gcc-build &amp;&amp;
cd ../gcc-build &amp;&amp; cd ../gcc-build &amp;&amp;
../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \ ../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \
&nbsp;&nbsp;&nbsp;&nbsp;--enable-languages=c,c++ --enable-threads=posix \ &nbsp;&nbsp;&nbsp;&nbsp;--enable-languages=c,c++ --enable-threads=posix \
&nbsp;&nbsp;&nbsp;&nbsp;--with-slibdir=/lib --enable-__cxa_atexit &amp;&amp; &nbsp;&nbsp;&nbsp;&nbsp;--with-slibdir=/lib --enable-__cxa_atexit \
&nbsp;&nbsp;&nbsp;&nbsp;--enable-clocale=gnu &amp;&amp;
make bootstrap &amp;&amp; make bootstrap &amp;&amp;
make install &amp;&amp; make install &amp;&amp;
ln -s ../usr/bin/cpp /lib &amp;&amp; ln -s ../usr/bin/cpp /lib &amp;&amp;