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 --- chapter06/gcc.xml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'chapter06/gcc.xml') diff --git a/chapter06/gcc.xml b/chapter06/gcc.xml index fe997becf..6a75fb287 100644 --- a/chapter06/gcc.xml +++ b/chapter06/gcc.xml @@ -45,6 +45,16 @@ patch -Np1 -i ../gcc-6.1.0-asan-1.patch --> + If building on x86_64, change the default direcotory 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 + The GCC documentation recommends building GCC in a dedicated build directory: mkdir -v build @@ -175,10 +185,8 @@ ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/&gcc-version;/liblto_plugin.so \ Depending on your machine architecture, the above may differ slightly, the difference usually being the name of the directory - after /usr/lib/gcc. If your machine is - a 64-bit system, you may also see a directory named lib64 - towards the end of the string. The important thing to - look for here is that gcc has found all three + after /usr/lib/gcc. The important + thing to look for here is that gcc has found all three crt*.o files under the /usr/lib directory. -- cgit v1.2.3-54-g00ecf