mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-29 00:29:20 +01:00
rm /bin/bash after makedev, re-added HAVE_GAS_HIDDEN, removed --enable-__cxa-atexit
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2075 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
83e39026d0
commit
5ebcbccb4e
@ -52,6 +52,15 @@
|
|||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</para></listitem>
|
</para></listitem>
|
||||||
|
|
||||||
|
<listitem><para>August 30th, 2002 [timothy]: Chapter 06 - Makedev:
|
||||||
|
Put rm /bin/bash after device creation. Perl: Removed information
|
||||||
|
about the old patch.</para></listitem>
|
||||||
|
|
||||||
|
<listitem><para>August 30th, 2002 [timothy]: Chapter 05 - GCC: Re-added
|
||||||
|
HAVE_GAS_HIDDEN; removed --enable-__cxa-atexit which was incorrect and
|
||||||
|
not needed in this chapter; added information about the
|
||||||
|
patch.</para></listitem>
|
||||||
|
|
||||||
<listitem><para>August 26th, 2002 [gerard]: Added a new Glibc patch and
|
<listitem><para>August 26th, 2002 [gerard]: Added a new Glibc patch and
|
||||||
introducted a GCC patch.</para></listitem>
|
introducted a GCC patch.</para></listitem>
|
||||||
|
|
||||||
|
@ -19,9 +19,9 @@ the --enable-languages parameter may be omitted.</para>
|
|||||||
<para><userinput>--enable-threads=posix:</userinput> This enables C++
|
<para><userinput>--enable-threads=posix:</userinput> This enables C++
|
||||||
exception handling for multithreaded code.</para>
|
exception handling for multithreaded code.</para>
|
||||||
|
|
||||||
<para><userinput>--enable-__cxa-atexit:</userinput> This option will result
|
<para><userinput>echo "#define HAVE_GAS_HIDDEN 1":</userinput>
|
||||||
in C++ shared libraries and C++ programs that are interoperable with other
|
This defines the .hidden assembler directive so that we don't build
|
||||||
linux distributions.</para>
|
a faulty Glibc later on.</para>
|
||||||
|
|
||||||
<para><userinput>make BOOT_LDFLAGS=-static:</userinput>
|
<para><userinput>make BOOT_LDFLAGS=-static:</userinput>
|
||||||
This is the equivalent to make LDFLAGS=-static as we use with other
|
This is the equivalent to make LDFLAGS=-static as we use with other
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
<sect2>
|
<sect2>
|
||||||
<title>Installation of GCC</title>
|
<title>Installation of GCC</title>
|
||||||
|
|
||||||
|
<para>This package requires its patch to be applied before you can
|
||||||
|
install it. Make sure it's unpacked before running the installation
|
||||||
|
commands.</para>
|
||||||
|
|
||||||
<para>This package is known to behave badly when you have changed its
|
<para>This package is known to behave badly when you have changed its
|
||||||
default optimization flags (including the -march and -mcpu options). GCC is
|
default optimization flags (including the -march and -mcpu options). GCC is
|
||||||
best left alone. Therefore, if you have defined any environment variables
|
best left alone. Therefore, if you have defined any environment variables
|
||||||
@ -14,8 +18,8 @@ been warned.</para>
|
|||||||
mkdir ../gcc-build &&
|
mkdir ../gcc-build &&
|
||||||
cd ../gcc-build &&
|
cd ../gcc-build &&
|
||||||
../gcc-&gcc-version;/configure --prefix=/static --enable-languages=c \
|
../gcc-&gcc-version;/configure --prefix=/static --enable-languages=c \
|
||||||
--disable-nls --disable-shared --enable-threads=posix \
|
--disable-nls --disable-shared --enable-threads=posix &&
|
||||||
--enable-__cxa-atexit &&
|
echo "#define HAVE_GAS_HIDDEN 1" >> gcc/auto-host.h &&
|
||||||
make BOOT_LDFLAGS=-static bootstrap &&
|
make BOOT_LDFLAGS=-static bootstrap &&
|
||||||
make prefix=$LFS/static install &&
|
make prefix=$LFS/static install &&
|
||||||
ln -s gcc $LFS/static/bin/cc</userinput></screen></para>
|
ln -s gcc $LFS/static/bin/cc</userinput></screen></para>
|
||||||
|
@ -24,6 +24,10 @@ exactly what each package is used for, and why the user or the system
|
|||||||
needs it. For this purpose a short description of the content of each
|
needs it. For this purpose a short description of the content of each
|
||||||
package is given right after the installation instructions.</para>
|
package is given right after the installation instructions.</para>
|
||||||
|
|
||||||
|
<para>Many of our packages must be patched before they can be compiled.
|
||||||
|
We only apply patches when and where they are needed. So, don't fret if
|
||||||
|
seems like instructions for a patch are missing.</para>
|
||||||
|
|
||||||
<para>During the installation of several packages you will probably
|
<para>During the installation of several packages you will probably
|
||||||
see all kinds of compiler warnings scroll by on your screen. These are
|
see all kinds of compiler warnings scroll by on your screen. These are
|
||||||
normal and can be safely ignored. They are just what they say they are:
|
normal and can be safely ignored. They are just what they say they are:
|
||||||
|
9
chapter06/gcc-exp.xml
Normal file
9
chapter06/gcc-exp.xml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<sect2>
|
||||||
|
<title>Command explanations</title>
|
||||||
|
|
||||||
|
<para><userinput>--enable-__cxa_atexit:</userinput> This option will result
|
||||||
|
in C++ shared libraries and C++ programs that are interoperable with other
|
||||||
|
linux distributions.</para>
|
||||||
|
|
||||||
|
</sect2>
|
||||||
|
|
@ -1,6 +1,10 @@
|
|||||||
<sect2>
|
<sect2>
|
||||||
<title>Installation of GCC</title>
|
<title>Installation of GCC</title>
|
||||||
|
|
||||||
|
<para>This package requires its patch to be applied before you can
|
||||||
|
install it. Make sure it's unpacked before running the installation
|
||||||
|
commands.</para>
|
||||||
|
|
||||||
<para>This package is known to behave badly when you have changed its
|
<para>This package is known to behave badly when you have changed its
|
||||||
default optimization flags (including the -march and -mcpu options). GCC is
|
default optimization flags (including the -march and -mcpu options). GCC is
|
||||||
best left alone. Therefore, if you have defined any environment variables
|
best left alone. Therefore, if you have defined any environment variables
|
||||||
@ -23,7 +27,7 @@ mkdir ../gcc-build &&
|
|||||||
cd ../gcc-build &&
|
cd ../gcc-build &&
|
||||||
../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \
|
../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \
|
||||||
--enable-languages=c,c++ --enable-threads=posix \
|
--enable-languages=c,c++ --enable-threads=posix \
|
||||||
--with-slibdir=/lib --enable-_cxa-atexit &&
|
--with-slibdir=/lib --enable-__cxa_atexit &&
|
||||||
make bootstrap &&
|
make bootstrap &&
|
||||||
make install &&
|
make install &&
|
||||||
ln -s ../usr/bin/cpp /lib &&
|
ln -s ../usr/bin/cpp /lib &&
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
Estimated required disk space: &gcc-compsize;</screen>
|
Estimated required disk space: &gcc-compsize;</screen>
|
||||||
|
|
||||||
&c6-gcc-inst;
|
&c6-gcc-inst;
|
||||||
|
&c6-gcc-exp;
|
||||||
&aa-gcc-desc;
|
&aa-gcc-desc;
|
||||||
&aa-gcc-dep;
|
&aa-gcc-dep;
|
||||||
|
|
||||||
|
@ -9,17 +9,18 @@ won't create a directory for you to cd into.</para>
|
|||||||
<para><screen><userinput>ln -s /static/bin/bash /bin/bash &&
|
<para><screen><userinput>ln -s /static/bin/bash /bin/bash &&
|
||||||
cp MAKEDEV-&makedev-version; /dev/MAKEDEV &&
|
cp MAKEDEV-&makedev-version; /dev/MAKEDEV &&
|
||||||
cd /dev &&
|
cd /dev &&
|
||||||
chmod 754 MAKEDEV &&
|
chmod 754 MAKEDEV</userinput></screen></para>
|
||||||
rm /bin/bash</userinput></screen></para>
|
|
||||||
|
|
||||||
<para>Now, depending on whether you are going to use devpts or not, you
|
<para>Now, depending on whether you are going to use devpts or not, you
|
||||||
can run one of two commands:</para>
|
can run one of two commands:</para>
|
||||||
|
|
||||||
<para>If you do not intend to use devpts, run:</para>
|
<para>If you do not intend to use devpts, run:</para>
|
||||||
<para><screen><userinput>./MAKEDEV -v generic</userinput></screen></para>
|
<para><screen><userinput>./MAKEDEV -v generic &&
|
||||||
|
rm /bin/bash</userinput></screen></para>
|
||||||
|
|
||||||
<para>If you do intend to use devpts, then run:</para>
|
<para>If you do intend to use devpts, then run:</para>
|
||||||
<para><screen><userinput>./MAKEDEV -v generic-nopty</userinput></screen></para>
|
<para><screen><userinput>./MAKEDEV -v generic-nopty &&
|
||||||
|
rm /bin/bash</userinput></screen></para>
|
||||||
|
|
||||||
<para>Note that if you aren't sure, it's best to use
|
<para>Note that if you aren't sure, it's best to use
|
||||||
the <userinput>./MAKEDEV -v generic</userinput> command as this will
|
the <userinput>./MAKEDEV -v generic</userinput> command as this will
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<para><userinput>patch -Np1 -i
|
<para><userinput>patch -Np1 -i
|
||||||
../ncurses-&ncurses-version;-patch:</userinput> This patch fixes a compile
|
../ncurses-&ncurses-version;-patch:</userinput> This patch fixes a compile
|
||||||
problem with GCC-3.1 because Ncurses uses constructions that are no longer
|
problem with GCC-3.2 because Ncurses uses constructions that are no longer
|
||||||
valid in the new C++ standard.</para>
|
valid in the new C++ standard.</para>
|
||||||
|
|
||||||
<para><userinput>--with-shared:</userinput> This enables the build of the
|
<para><userinput>--with-shared:</userinput> This enables the build of the
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
<sect2>
|
<sect2>
|
||||||
<title>Installation of Perl</title>
|
<title>Installation of Perl</title>
|
||||||
|
|
||||||
<para>This package requires its patch to be applied before you can
|
|
||||||
install it. Make sure it's unpacked before running the installation
|
|
||||||
commands.</para>
|
|
||||||
|
|
||||||
<para>Install Perl by running the following commands:</para>
|
<para>Install Perl by running the following commands:</para>
|
||||||
|
|
||||||
<para><screen><userinput>./configure.gnu --prefix=/usr &&
|
<para><screen><userinput>./configure.gnu --prefix=/usr &&
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<title>Command explanations</title>
|
<title>Command explanations</title>
|
||||||
|
|
||||||
<para><userinput>patch -Np1 -i ../vim-&vim-version;.patch:</userinput> This
|
<para><userinput>patch -Np1 -i ../vim-&vim-version;.patch:</userinput> This
|
||||||
patch fixes a compile problem with GCC-3.1.</para>
|
patch fixes a compile problem with GCC-3.2.</para>
|
||||||
|
|
||||||
<para><userinput>make
|
<para><userinput>make
|
||||||
CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\":</userinput> Setting this will
|
CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\":</userinput> Setting this will
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
<!ENTITY c6-gcc SYSTEM "../chapter06/gcc.xml">
|
<!ENTITY c6-gcc SYSTEM "../chapter06/gcc.xml">
|
||||||
<!ENTITY c6-gcc-inst SYSTEM "../chapter06/gcc-inst.xml">
|
<!ENTITY c6-gcc-inst SYSTEM "../chapter06/gcc-inst.xml">
|
||||||
|
<!ENTITY c6-gcc-exp SYSTEM "../chapter06/gcc-exp.xml">
|
||||||
|
|
||||||
<!ENTITY aa-gcc SYSTEM "../appendixa/gcc.xml">
|
<!ENTITY aa-gcc SYSTEM "../appendixa/gcc.xml">
|
||||||
<!ENTITY aa-gcc-desc SYSTEM "../appendixa/gcc-desc.xml">
|
<!ENTITY aa-gcc-desc SYSTEM "../appendixa/gcc-desc.xml">
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
<!ENTITY book SYSTEM "book/book.xml">
|
<!ENTITY book SYSTEM "book/book.xml">
|
||||||
|
|
||||||
<!ENTITY version "20020827">
|
<!ENTITY version "20020830">
|
||||||
<!ENTITY releasedate "August 27th, 2002">
|
<!ENTITY releasedate "August 30th, 2002">
|
||||||
|
|
||||||
<!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org">
|
<!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org">
|
||||||
<!ENTITY http-root "http://ftp.linuxfromscratch.org">
|
<!ENTITY http-root "http://ftp.linuxfromscratch.org">
|
||||||
|
Loading…
Reference in New Issue
Block a user