mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
- fix some gcc->GCC
- remove commented text in glibc (chap 5), and fix a directory location git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11934 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
ad15abd0c0
commit
77d2cd8d43
@ -193,7 +193,7 @@ cd build</userinput></screen>
|
|||||||
headers. Normally one of them, <filename>limits.h</filename>, would in turn
|
headers. Normally one of them, <filename>limits.h</filename>, would in turn
|
||||||
include the corresponding system <filename>limits.h</filename> header, in
|
include the corresponding system <filename>limits.h</filename> header, in
|
||||||
this case, <filename>$LFS/usr/include/limits.h</filename>. However, at the
|
this case, <filename>$LFS/usr/include/limits.h</filename>. However, at the
|
||||||
time of this build of gcc <filename>$LFS/usr/include/limits.h</filename>
|
time of this build of GCC <filename>$LFS/usr/include/limits.h</filename>
|
||||||
does not exist, so the internal header that has just been installed is a
|
does not exist, so the internal header that has just been installed is a
|
||||||
partial, self-contained file and does not include the extended features of
|
partial, self-contained file and does not include the extended features of
|
||||||
the system header. This is adequate for building glibc, but the full
|
the system header. This is adequate for building glibc, but the full
|
||||||
|
@ -99,9 +99,10 @@ cd build</userinput></screen>
|
|||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><parameter>--with-headers=$LFS/usr/include</parameter></term>
|
<term><parameter>--with-headers=$LFS/usr/include</parameter></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>This tells Glibc to compile itself against the headers recently
|
<para>This tells Glibc to compile itself against the headers
|
||||||
installed to the usr/include directory, so that it knows exactly what
|
recently installed to the $LFS/usr/include directory, so that
|
||||||
features the kernel has and can optimize itself accordingly.</para>
|
it knows exactly what features the kernel has and can optimize
|
||||||
|
itself accordingly.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
@ -112,24 +113,6 @@ cd build</userinput></screen>
|
|||||||
of the default /lib64 on 64 bit machines.</para>
|
of the default /lib64 on 64 bit machines.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
<!--
|
|
||||||
<varlistentry>
|
|
||||||
<term><parameter>libc_cv_c_cleanup=yes</parameter></term>
|
|
||||||
<listitem>
|
|
||||||
<para>Similarly, we pass libc_cv_c_cleanup=yes through to the
|
|
||||||
<command>configure</command> script so that the test is skipped and C
|
|
||||||
cleanup handling support is configured.</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term><parameter>libc_cv_ctors_header=yes</parameter></term>
|
|
||||||
<listitem>
|
|
||||||
<para>Similarly, we pass libc_cv_ctors_header=yes through to the
|
|
||||||
<command>configure</command> script so that the test is skipped and
|
|
||||||
gcc constructor support is configured.</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>-->
|
|
||||||
|
|
||||||
</variablelist>
|
</variablelist>
|
||||||
|
|
||||||
|
@ -227,7 +227,7 @@
|
|||||||
this is the only compiler available for building the C/C++ libraries
|
this is the only compiler available for building the C/C++ libraries
|
||||||
during stage 2! Of course, the compiler built during stage 2, cc-lfs,
|
during stage 2! Of course, the compiler built during stage 2, cc-lfs,
|
||||||
would be able to build those libraries, but (1) the build system of
|
would be able to build those libraries, but (1) the build system of
|
||||||
gcc does not know that it is usable on pc, and (2) using it on pc
|
GCC does not know that it is usable on pc, and (2) using it on pc
|
||||||
would be at risk of linking to the pc libraries, since cc-lfs is a native
|
would be at risk of linking to the pc libraries, since cc-lfs is a native
|
||||||
compiler. So we have to build libstdc++ later, in chroot.</para>
|
compiler. So we have to build libstdc++ later, in chroot.</para>
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ ln -s ../../../libgcc/gthr-posix.h $LFS_TGT/libgcc/gthr-default.h</userinput></s
|
|||||||
<term><parameter>-with-build-sysroot=$LFS</parameter></term>
|
<term><parameter>-with-build-sysroot=$LFS</parameter></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Normally, using <parameter>--host</parameter> ensures that
|
<para>Normally, using <parameter>--host</parameter> ensures that
|
||||||
a cross-compiler is used for building gcc, and that compiler knows
|
a cross-compiler is used for building GCC, and that compiler knows
|
||||||
that it has to look for headers and libraries in <filename
|
that it has to look for headers and libraries in <filename
|
||||||
class="directory">$LFS</filename>. But the build system of GCC uses
|
class="directory">$LFS</filename>. But the build system of GCC uses
|
||||||
other tools, which are not aware of this location. This switch is
|
other tools, which are not aware of this location. This switch is
|
||||||
|
@ -60,14 +60,14 @@
|
|||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><parameter>--with-gcc-arch=native</parameter></term>
|
<term><parameter>--with-gcc-arch=native</parameter></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Ensure gcc optimizes for the current system. If this
|
<para>Ensure GCC optimizes for the current system. If this
|
||||||
is not specified, the system is guessed and the code generated
|
is not specified, the system is guessed and the code generated
|
||||||
may not be correct for some systems. If the generated code
|
may not be correct for some systems. If the generated code
|
||||||
will be copied from the native system to a less capable
|
will be copied from the native system to a less capable
|
||||||
system, use the less capable system as a parameter. For details
|
system, use the less capable system as a parameter. For details
|
||||||
about alternative system types, see <ulink
|
about alternative system types, see <ulink
|
||||||
url='https://gcc.gnu.org/onlinedocs/gcc-&gcc-version;/gcc/x86-Options.html'>
|
url='https://gcc.gnu.org/onlinedocs/gcc-&gcc-version;/gcc/x86-Options.html'>
|
||||||
the x86 options in the gcc manual</ulink>.</para>
|
the x86 options in the GCC manual</ulink>.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
url='&blfs-book;/general/gdb.html'>gdb</ulink> later in BLFS.
|
url='&blfs-book;/general/gdb.html'>gdb</ulink> later in BLFS.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<!-- also of interest are libgfortan, libgo, libgomp, and libobjc from gcc -->
|
<!-- also of interest are libgfortan, libgo, libgomp, and libobjc from GCC -->
|
||||||
|
|
||||||
<!--<screen><userinput>save_lib="ld-2.25.so libc-2.25.so libpthread-2.25.so libthread_db-1.0.so"-->
|
<!--<screen><userinput>save_lib="ld-2.25.so libc-2.25.so libpthread-2.25.so libthread_db-1.0.so"-->
|
||||||
<screen><userinput>save_lib="ld-&glibc-version;.so libc-&glibc-version;.so libpthread-&glibc-version;.so libthread_db-&libthread_db-version;.so"
|
<screen><userinput>save_lib="ld-&glibc-version;.so libc-&glibc-version;.so libpthread-&glibc-version;.so libthread_db-&libthread_db-version;.so"
|
||||||
|
Loading…
Reference in New Issue
Block a user