#4453: Multilib: 6.23 gcc instructions useless
--------------------+----------------------
Reporter: thomas | Owner: lfs-book
Type: task | Status: new
Priority: normal | Milestone: 8.5
Component: Book | Version: multilib
Severity: normal | Keywords:
--------------------+----------------------
In 6.23 we do a
{{{
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
}}}
which is useless. First we do a sed but then, we recreate the whole file
via cat<<EOF. The two statements could be replaced/simplified by
{{{
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
}}}
Same in chap 5.5 (gcc-pass1) and 5.11 (gcc-pass2)
--
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/4453>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
--
http://lists.linuxfromscratch.org/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page