From be3d9f313a25000d1cbaa631852be62330828f2c Mon Sep 17 00:00:00 2001 From: DJ Lucas Date: Sat, 17 Dec 2016 06:46:18 +0000 Subject: Merge nosym branch. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11154 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/gcc-pass1.xml | 16 +++++++++++++--- chapter05/gcc-pass2.xml | 13 +++++++++++-- 2 files changed, 24 insertions(+), 5 deletions(-) (limited to 'chapter05') diff --git a/chapter05/gcc-pass1.xml b/chapter05/gcc-pass1.xml index 694bfe780..f72e11df0 100644 --- a/chapter05/gcc-pass1.xml +++ b/chapter05/gcc-pass1.xml @@ -68,8 +68,7 @@ mv -v mpc-&mpc-version; mpc class="directory">/usr/include from GCC's include search path. Issue: -for file in \ - $(find gcc/config -name linux64.h -o -name linux.h -o -name sysv4.h) +for file in gcc/config/{linux,i386/linux{,64}}.h do cp -uv $file{,.orig} sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&@g' \ @@ -97,7 +96,18 @@ done Finally, we use touch to update the timestamp on the copied files. When used in conjunction with cp -u, this prevents unexpected changes to the original files in case the commands are - inadvertently run twice. + inadvertently run twice. + + Finally, on x86_64 hosts, set the default directory name for + 64-bit libraries to lib: + +case $(uname -m) in + x86_64) + sed -e '/m64=/s/lib64/lib/' \ + -i.orig gcc/config/i386/t-linux64 + ;; +esac +