From c90f09ce30d0727d67605bce6d768ee4959e2aed Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Tue, 18 Sep 2001 16:10:35 +0000 Subject: [PATCH] added --enable-threads=posix to chapter 5-gcc, updated chapter 6 from --enable-threads to --enable-threads=posix (for clarity, since posix is the default). git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1239 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 5 +++++ chapter05/gcc-exp.xml | 3 +++ chapter05/gcc-inst.xml | 2 +- chapter06/gcc-exp.xml | 9 --------- chapter06/gcc-inst.xml | 2 +- chapter06/gcc.xml | 1 - index.xml | 1 - 7 files changed, 10 insertions(+), 13 deletions(-) delete mode 100644 chapter06/gcc-exp.xml diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 92a9b80e8..27d293cfc 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -15,6 +15,11 @@ +September 18th, 2001 [gerard]: Chapter 5+6 - GCC: +Added --enable-threads=posix to chapter 5, and changed --enable-threads to +--enable-threads=posix in chapter 6. Although the default is posix threads when +not specified, it's clearer this way what's being enabled. + September 17th, 2001 [gerard]: Chapter 6 - Psmisc: Added notes how to deal with psmisc's pidof symlink (in case sysvinit isn't installed) and man page. Also, added --exec-prefix=/ to psmisc's diff --git a/chapter05/gcc-exp.xml b/chapter05/gcc-exp.xml index 1aeecadff..0f29ccffe 100644 --- a/chapter05/gcc-exp.xml +++ b/chapter05/gcc-exp.xml @@ -20,6 +20,9 @@ and C++ compilers and not the other available compilers as they are, on the average, not often used. If those other compilers are needed, the --enable-languages parameter can be omitted. +--enable-threads=posix: This enables C++ +exception handling for multithreaded code. + ln -sf ../usr/bin/cpp: This creates the $LFS/lib/cpp symlink. Some packages explicitly try to find cpp in /lib. diff --git a/chapter05/gcc-inst.xml b/chapter05/gcc-inst.xml index 575ee0141..2ee6d383e 100644 --- a/chapter05/gcc-inst.xml +++ b/chapter05/gcc-inst.xml @@ -13,7 +13,7 @@ it comes with. mkdir ../gcc-build && cd ../gcc-build && ../gcc-&gcc-version;/configure --prefix=/usr --enable-languages=c,c++ \ -   --disable-nls --disable-shared && +   --disable-nls --disable-shared --enable-threads=posix && make BOOT_LDFLAGS=-static bootstrap && make prefix=$LFS/usr install && cd $LFS/lib && diff --git a/chapter06/gcc-exp.xml b/chapter06/gcc-exp.xml deleted file mode 100644 index 91b81a99c..000000000 --- a/chapter06/gcc-exp.xml +++ /dev/null @@ -1,9 +0,0 @@ - -Command explanations - ---enable-threads: C++ exception handling for -multithreaded code will not work if gcc is compiled without ---enable-threads. - - - diff --git a/chapter06/gcc-inst.xml b/chapter06/gcc-inst.xml index 2bc3a397c..96305f03f 100644 --- a/chapter06/gcc-inst.xml +++ b/chapter06/gcc-inst.xml @@ -21,7 +21,7 @@ who actively work on LFS. mkdir ../gcc-build && cd ../gcc-build && ../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \ -   --enable-languages=c,c++ --enable-threads && +   --enable-languages=c,c++ --enable-threads=posix && make bootstrap && make install diff --git a/chapter06/gcc.xml b/chapter06/gcc.xml index 34eceb8f9..19bb475ed 100644 --- a/chapter06/gcc.xml +++ b/chapter06/gcc.xml @@ -5,7 +5,6 @@ Estimated required disk space: &gcc-compsize; &c6-gcc-inst; -&c6-gcc-exp; &aa-gcc-desc; &ab-gcc-dep; diff --git a/index.xml b/index.xml index 9a3f47028..b1555ca97 100644 --- a/index.xml +++ b/index.xml @@ -200,7 +200,6 @@ -