aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/gcc-exp.xml
diff options
context:
space:
mode:
authorGerard Beekmans <gerard@linuxfromscratch.org>2002-08-26 23:43:23 +0000
committerGerard Beekmans <gerard@linuxfromscratch.org>2002-08-26 23:43:23 +0000
commit6f9d1a9f8e1a372153081cadf0180675474b1e44 (patch)
treecf8288b41af4cb6ceffc99ec01c9eaa61e730b57 /chapter05/gcc-exp.xml
parentd40a646fd9491d7da0a470684c8726919cd4d817 (diff)
updated to automake-1.6.3, gcc-3.2, groff-1.18, makedev-1.7, perl-5.8.0, util-linux-2.11u | added gcc-3.2.patch glibc-2.2.5-2.patch
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2073 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05/gcc-exp.xml')
-rw-r--r--chapter05/gcc-exp.xml17
1 files changed, 11 insertions, 6 deletions
diff --git a/chapter05/gcc-exp.xml b/chapter05/gcc-exp.xml
index 254e713ff..271a30663 100644
--- a/chapter05/gcc-exp.xml
+++ b/chapter05/gcc-exp.xml
@@ -1,9 +1,10 @@
<sect2>
<title>Command explanations</title>
-<para><userinput>make BOOT_LDFLAGS=-static:</userinput>
-This is the equivalent to make LDFLAGS=-static as we use with other
-packages to compile them statically.</para>
+<para><userinput>patch -Np1 -i ../gcc-&gcc-patch-version;.patch:</userinput>
+This patch fixes a few bug fixes. See
+<ulink url="http://www.zipworld.com.au/~gschafer/lfs-tweaks.html"/> for
+more details.</para>
<para><userinput>--prefix=/static:</userinput> This is NOT a typo. GCC hard
codes some paths while compiling and so we need to pass /static as the
@@ -18,9 +19,13 @@ 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>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>--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>make BOOT_LDFLAGS=-static:</userinput>
+This is the equivalent to make LDFLAGS=-static as we use with other
+packages to compile them statically.</para>
<para><userinput>ln -s gcc $LFS/static/bin/cc:</userinput> This
creates the $LFS/static/bin/gcc symlink which some packages need.</para>