r137 - in trunk/text: chapter01 chapter03 chapter06

robert at linuxfromscratch.org robert at linuxfromscratch.org
Wed Feb 2 06:20:28 PST 2005


Author: robert
Date: 2005-02-02 07:20:28 -0700 (Wed, 02 Feb 2005)
New Revision: 137

Modified:
   trunk/text/chapter01/changelog.txt
   trunk/text/chapter03/patches.txt
   trunk/text/chapter06/13-gcc.txt
Log:
Added fpie patch for gcc

Modified: trunk/text/chapter01/changelog.txt
===================================================================
--- trunk/text/chapter01/changelog.txt	2005-01-31 19:25:20 UTC (rev 136)
+++ trunk/text/chapter01/changelog.txt	2005-02-02 14:20:28 UTC (rev 137)
@@ -40,3 +40,6 @@
 January 29th, 2005 [Robert]
 Bump to shadow-4.0.7.
 
+February 2nd, 2005 [Robert]
+Added fpie patches for Binutils and GCC.
+

Modified: trunk/text/chapter03/patches.txt
===================================================================
--- trunk/text/chapter03/patches.txt	2005-01-31 19:25:20 UTC (rev 136)
+++ trunk/text/chapter03/patches.txt	2005-02-02 14:20:28 UTC (rev 137)
@@ -9,6 +9,7 @@
 http://www.linuxfromscratch.org/patches/downloads/hlfs/coreutils-5.2.1-uname-2.patch
 http://www.linuxfromscratch.org/patches/downloads/hlfs/expect-5.42.1-spawn-1.patch
 http://www.linuxfromscratch.org/patches/downloads/hlfs/flex-2.5.31-debian_fixes-2.patch
+http://www.linuxfromscratch.org/patches/downloads/hlfs/gcc-3.4.3-hardened_cflags-1.patch
 http://www.linuxfromscratch.org/patches/downloads/hlfs/gcc-3.4.3-linkonce-1.patch
 http://www.linuxfromscratch.org/patches/downloads/hlfs/gcc-3.4.3-no_fixincludes-1.patch
 http://www.linuxfromscratch.org/patches/downloads/hlfs/gcc-3.4.3-specs_x86-1.patch

Modified: trunk/text/chapter06/13-gcc.txt
===================================================================
--- trunk/text/chapter06/13-gcc.txt	2005-01-31 19:25:20 UTC (rev 136)
+++ trunk/text/chapter06/13-gcc.txt	2005-02-02 14:20:28 UTC (rev 137)
@@ -8,8 +8,9 @@
 patch -Np1 -i ../gcc-3.4.3-uClibc_libstdc++-1.patch &&
 patch -Np1 -i ../gcc-3.4.3-uClibc_locale-1.patch
 
-#
+# Patch, configure, and make GCC.
 
+patch -Np1 -i ../gcc-3.4.3-hardened_cflags-1.patch &&
 patch -Np1 -i ../gcc-3.4.3-specs_x86-1.patch &&
 patch -Np1 -i ../gcc-3.4.3-no_fixincludes-1.patch &&
 patch -Np1 -i ../gcc-3.4.3-ssp-3.patch &&
@@ -24,15 +25,9 @@
 	--libexecdir=/usr/lib --enable-threads=posix \
 	--enable-shared --enable-__cxa_atexit \
 	--with-dynamic-linker=${ldso} ${disable_nls} ${clocale} \
-	--enable-languages=c,c++ --enable-multilib=no
+	--enable-languages=c,c++ --enable-multilib=no &&
+make
 
-# The -fstack-protector in CFLAGS isn't actually needed since it is the
-# default on the host's gcc. The -fstack-protector in CXXFLAGS is needed
-# because the new g++ is built with the new gcc.
-
-make CFLAGS="-pie -fPIC -fstack-protector-all -O2" \
-	CXXFLAGS="-pie -fPIC -fstack-protector-all -O2"
-
 # Run the testsuite if you like. The results should be identical to results
 # you would typically get from an LFS build. There is an SSP test in
 # gcc.misc-tests/ which should pass.




More information about the hlfs-dev mailing list