r1579 - in branches/Onward: . downloads temporary_system

robert at linuxfromscratch.org robert at linuxfromscratch.org
Fri Feb 26 20:32:01 PST 2010


Author: robert
Date: 2010-02-26 21:32:01 -0700 (Fri, 26 Feb 2010)
New Revision: 1579

Modified:
   branches/Onward/changes.txt
   branches/Onward/downloads/patches.txt
   branches/Onward/temporary_system/gcc_pass2.txt
   branches/Onward/temporary_system/gmp.txt
   branches/Onward/temporary_system/mpfr.txt
Log:
Mentioned support for parallel builds. Added GCC specs patches for -fomit-frame-pointer -Wl,--hash-style=gnu -Wl,-O1 optimizations, to compensate the performance losses from ssp, source fortification, and non-lazy runtime bindings.

Modified: branches/Onward/changes.txt
===================================================================
--- branches/Onward/changes.txt	2010-02-25 22:50:01 UTC (rev 1578)
+++ branches/Onward/changes.txt	2010-02-27 04:32:01 UTC (rev 1579)
@@ -8,6 +8,17 @@
 # Support native x86_32 and x86_64. No multilib, cross compiling, or emulation.
 # Contact the mailing list if you want to help add support for more platforms.
 
+# Instructions are also 'make -j2' friendly. Glibc's commands are modified to
+# work with environment MAKEFLAGS, if it is set. If a package can not build
+# in parallel, MAKEFLAGS will be unset in the environment for that package. If
+# you have a multicore system, use something like 'export MAKEFLAGS=-j2'.
+# Perhaps a multicore detection script could be added to ~/.bashrc.
+
+# Reasonable optimizations, such as -fomit-frame-pointer, -Wl,--hash-style=gnu,
+# and -Wl,-O1, are added to GCC specs. This will compensate, to some degree,
+# for performance loss from SSP, source fortification, and non-lazy runtime
+# bindings.
+
 # Added several small changes to the tools required to boot the temporary 
 # system. These changes were made to e2fsprogs, sysvinit, udev, and 
 # util-linux. Added booting_temporary directory and pages.

Modified: branches/Onward/downloads/patches.txt
===================================================================
--- branches/Onward/downloads/patches.txt	2010-02-25 22:50:01 UTC (rev 1578)
+++ branches/Onward/downloads/patches.txt	2010-02-27 04:32:01 UTC (rev 1579)
@@ -29,6 +29,9 @@
 # Gawk libsigsegv patch:
 http://www.linuxfromscratch.org/~robert/new/patches/gawk-3.1.7-libsigsegv.diff
 
+# GCC -fomit-frame-pointer patch:
+http://www.linuxfromscratch.org/~robert/new/patches/gcc-4.4-fomit_frame_pointer.diff
+
 # GCC -fPIE patch:
 http://www.linuxfromscratch.org/~robert/new/patches/gcc-4.4-fpie.diff
 
@@ -38,6 +41,9 @@
 # GCC -fstack-protector-all patch:
 http://www.linuxfromscratch.org/~robert/new/patches/gcc-4.4-fstack_protector.diff
 
+# GCC optimize linking patch:
+http://www.linuxfromscratch.org/~robert/new/patches/gcc-4.4-optimize_linking.diff
+
 # Gettext upstream fixes:
 http://www.linuxfromscratch.org/~robert/new/patches/gettext-0.17-upstream_fixes-2.diff
 

Modified: branches/Onward/temporary_system/gcc_pass2.txt
===================================================================
--- branches/Onward/temporary_system/gcc_pass2.txt	2010-02-25 22:50:01 UTC (rev 1578)
+++ branches/Onward/temporary_system/gcc_pass2.txt	2010-02-27 04:32:01 UTC (rev 1579)
@@ -50,6 +50,16 @@
 
 patch -p1 -i ../gcc-4.4-fpie.diff &&
 
+# The following patch adds '-fomit-frame-pointer' by default to GCC's specs.
+# This will improve performance in every package built with GCC:
+
+patch -p1 -i ../gcc-4.4-fomit_frame_pointer.diff &&
+
+# This patch adds -Wl,--hash-style=gnu -Wl,-O1 to GCC specs to perform linker
+# optimizations. This will improve performance in every package built with GCC:
+
+patch -p1 -i ../gcc-4.4-optimize_linking.diff &&
+
 # Add to the GCC version string:
 
 cp -v gcc/version.c{,.orig} &&

Modified: branches/Onward/temporary_system/gmp.txt
===================================================================
--- branches/Onward/temporary_system/gmp.txt	2010-02-25 22:50:01 UTC (rev 1578)
+++ branches/Onward/temporary_system/gmp.txt	2010-02-27 04:32:01 UTC (rev 1579)
@@ -4,9 +4,10 @@
 
 mkdir -v obj/ &&
 cd obj/ &&
-env CC="gcc -fstack-protector-all" \
+env CC="gcc -fstack-protector-all -fomit-frame-pointer" \
+	CXX="g++ -fstack-protector-all -fomit-frame-pointer" \
 	CPPFLAGS="-fexceptions -D_FORTIFY_SOURCE=2" \
-	LDFLAGS="-Wl,-z,relro -Wl,-z,now" \
+	LDFLAGS="-Wl,-z,relro -Wl,-z,now -Wl,--hash-style=gnu -Wl,-O1" \
 	../configure --prefix=/tools --enable-cxx \
 	--infodir=$(pwd)/DESTDIR --mandir=$(pwd)/DESTDIR &&
 

Modified: branches/Onward/temporary_system/mpfr.txt
===================================================================
--- branches/Onward/temporary_system/mpfr.txt	2010-02-25 22:50:01 UTC (rev 1578)
+++ branches/Onward/temporary_system/mpfr.txt	2010-02-27 04:32:01 UTC (rev 1579)
@@ -8,8 +8,9 @@
 
 mkdir -v obj/ &&
 cd obj/ &&
-env CC="gcc -fstack-protector-all" CPPFLAGS="-D_FORTIFY_SOURCE=2"  \
-	LDFLAGS="-Wl,-z,relro -Wl,-z,now" \
+env CC="gcc -fstack-protector-all -fomit-frame-pointer" \
+	CPPFLAGS="-D_FORTIFY_SOURCE=2" \
+	LDFLAGS="-Wl,-z,relro -Wl,-z,now -Wl,--hash-style=gnu -Wl,-O1" \
 	../configure --prefix=/tools --enable-thread-safe \
 	--infodir=$(pwd)/DESTDIR --mandir=$(pwd)/DESTDIR &&
 make &&




More information about the hlfs-book mailing list