I've been studying Jeremy's changes and want to summarize them here. Chapter 5 Binutil pass 1 Add two configure options: --with-sysroot=$LFS --with-lib-path=/tools/lib
These are not in the main binutils configure command, but are in the configure for ld gcc-pass1 Change 28 header files (as in pass2): 3 sparc, 1 mn10300, 1 tilepro, 1 alpha, 1 vax, 2 ia64, 2 mips, 1 bfin, 1 cris, 1 microblaze, 1 s390, 1 xtensa, 1 m68k, 3 i386, 1 sh, 1 m32t, 3 rs6000, 1 tilegx, 1 frv, and 1 base linux.h The only places that affect us where the sed matches is in gcc/config/i386/linux.h and gcc/config/i386/linux64.h. I doubt any of the other files need to be changed, but it doesn't hurt anything either. for file in \ $(find gcc/config -name linux64.h -o -name linux.h -o -name sysv4.h) do cp -uv $file{,.orig} sed -r -e 's@/lib(64)?(32)?/ld@/tools&@g' \ -e 's@/usr@/tools@g' $file.orig > $file echo ' #undef STANDARD_STARTFILE_PREFIX_1 #undef STANDARD_STARTFILE_PREFIX_2 #define STANDARD_STARTFILE_PREFIX_1 "/tools/lib/" #define STANDARD_STARTFILE_PREFIX_2 ""' >> $file touch $file.orig done Add five configure options --with-sysroot=$LFS \ --with-newlib \ --without-headers \ --with-local-prefix=/tools \ --with-native-system-header-dir=/tools/include \ Remove two configure options --without-ppl --without-cloog Adjusting the toolchain Remove completely binutils-pass2 Remove -B/tools/lib/ from CC gcc-pass2 Remove startfiles_fix-1.patch Add code: cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \ `dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/include-fixed/limits.h Remove code: case $(uname -m) in x86_64) for file in $(find gcc/config -name t-linux64) ; do \ cp -v $file{,.orig} sed '/MULTILIB_OSDIRNAMES/d' $file.orig > $file done ;; esac Configure: Remove -B/tools/lib/ from CC Remove configure options --with-native-system-header-dir=/tools/include --without-ppl --without-cloog Chapter 6 No significant changes. Rename 'Re-adjusting the Toolchain' section to 'Adjusting the Toolchain' -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page