mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 06:14:47 +00: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>
|
||||
</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
|
||||
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++
|
||||
exception handling for multithreaded code.</para>
|
||||
|
||||
<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>
|
||||
<para><userinput>echo "#define HAVE_GAS_HIDDEN 1":</userinput>
|
||||
This defines the .hidden assembler directive so that we don't build
|
||||
a faulty Glibc later on.</para>
|
||||
|
||||
<para><userinput>make BOOT_LDFLAGS=-static:</userinput>
|
||||
This is the equivalent to make LDFLAGS=-static as we use with other
|
||||
|
@ -1,6 +1,10 @@
|
||||
<sect2>
|
||||
<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
|
||||
default optimization flags (including the -march and -mcpu options). GCC is
|
||||
best left alone. Therefore, if you have defined any environment variables
|
||||
@ -14,8 +18,8 @@ been warned.</para>
|
||||
mkdir ../gcc-build &&
|
||||
cd ../gcc-build &&
|
||||
../gcc-&gcc-version;/configure --prefix=/static --enable-languages=c \
|
||||
--disable-nls --disable-shared --enable-threads=posix \
|
||||
--enable-__cxa-atexit &&
|
||||
--disable-nls --disable-shared --enable-threads=posix &&
|
||||
echo "#define HAVE_GAS_HIDDEN 1" >> gcc/auto-host.h &&
|
||||
make BOOT_LDFLAGS=-static bootstrap &&
|
||||
make prefix=$LFS/static install &&
|
||||
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
|
||||
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
|
||||
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:
|
||||
|
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>
|
||||
<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
|
||||
default optimization flags (including the -march and -mcpu options). GCC is
|
||||
best left alone. Therefore, if you have defined any environment variables
|
||||
@ -23,7 +27,7 @@ mkdir ../gcc-build &&
|
||||
cd ../gcc-build &&
|
||||
../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \
|
||||
--enable-languages=c,c++ --enable-threads=posix \
|
||||
--with-slibdir=/lib --enable-_cxa-atexit &&
|
||||
--with-slibdir=/lib --enable-__cxa_atexit &&
|
||||
make bootstrap &&
|
||||
make install &&
|
||||
ln -s ../usr/bin/cpp /lib &&
|
||||
|
@ -6,6 +6,7 @@
|
||||
Estimated required disk space: &gcc-compsize;</screen>
|
||||
|
||||
&c6-gcc-inst;
|
||||
&c6-gcc-exp;
|
||||
&aa-gcc-desc;
|
||||
&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 &&
|
||||
cp MAKEDEV-&makedev-version; /dev/MAKEDEV &&
|
||||
cd /dev &&
|
||||
chmod 754 MAKEDEV &&
|
||||
rm /bin/bash</userinput></screen></para>
|
||||
chmod 754 MAKEDEV</userinput></screen></para>
|
||||
|
||||
<para>Now, depending on whether you are going to use devpts or not, you
|
||||
can run one of two commands:</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><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
|
||||
the <userinput>./MAKEDEV -v generic</userinput> command as this will
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
<para><userinput>patch -Np1 -i
|
||||
../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>
|
||||
|
||||
<para><userinput>--with-shared:</userinput> This enables the build of the
|
||||
|
@ -1,10 +1,6 @@
|
||||
<sect2>
|
||||
<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><screen><userinput>./configure.gnu --prefix=/usr &&
|
||||
|
@ -2,7 +2,7 @@
|
||||
<title>Command explanations</title>
|
||||
|
||||
<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
|
||||
CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\":</userinput> Setting this will
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
<!ENTITY c6-gcc SYSTEM "../chapter06/gcc.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-desc SYSTEM "../appendixa/gcc-desc.xml">
|
||||
|
@ -4,8 +4,8 @@
|
||||
|
||||
<!ENTITY book SYSTEM "book/book.xml">
|
||||
|
||||
<!ENTITY version "20020827">
|
||||
<!ENTITY releasedate "August 27th, 2002">
|
||||
<!ENTITY version "20020830">
|
||||
<!ENTITY releasedate "August 30th, 2002">
|
||||
|
||||
<!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org">
|
||||
<!ENTITY http-root "http://ftp.linuxfromscratch.org">
|
||||
|
Loading…
Reference in New Issue
Block a user