From 058c7efa53b9c7eb9a3211d49e93038be193a799 Mon Sep 17 00:00:00 2001 From: Thomas Trepl Date: Thu, 11 Apr 2019 13:14:59 +0000 Subject: [PATCH] Simplify instructions for multilib support. Fixes #4453 git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11575 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/gcc-pass1.xml | 13 +++---------- chapter05/gcc-pass2.xml | 13 +++---------- chapter06/gcc.xml | 13 +++---------- 3 files changed, 9 insertions(+), 30 deletions(-) diff --git a/chapter05/gcc-pass1.xml b/chapter05/gcc-pass1.xml index 7e40582f9..c4e3910a1 100644 --- a/chapter05/gcc-pass1.xml +++ b/chapter05/gcc-pass1.xml @@ -121,16 +121,9 @@ done ;; esac -sed -e '/m64=/s/lib64/lib/' \ - -i.orig gcc/config/i386/t-linux64 -cat > gcc/config/i386/t-linux64 <<"EOF" -comma=, -MULTILIB_OPTIONS = $(subst $(comma),/,$(TM_MULTILIB_CONFIG)) -MULTILIB_DIRNAMES = $(patsubst m%, %, $(subst /, ,$(MULTILIB_OPTIONS))) -MULTILIB_OSDIRNAMES = m64=../lib$(call if_multiarch,:x86_64-linux-gnu) -MULTILIB_OSDIRNAMES+= m32=../lib32$(call if_multiarch,:i386-linux-gnu) -MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32) -EOF +sed -e '/m64=/s/lib64/lib/' \ + -e '/m32=/s/m32=.*/m32=..\/lib32$(call if_multiarch,:i386-linux-gnu)/' \ + -i.orig gcc/config/i386/t-linux64