Opened 10 years ago

Closed 10 years ago

#3524 closed task (fixed)

Add lib32 directories to chapter 6 GCC

Reported by: Armin Owned by: lfs-book@…
Priority: normal Milestone: 7.6
Component: Book Version: SVN
Severity: normal Keywords:


I have received several questions and concerns about lib32 directories being displayed in chapter 6 GCC testing on i686, and that's not in the book. So it would be a nice idea to add it


If I recall correctly, there was a mailing list post about this too.

Change History (3)

comment:1 by Miklos Karacsony, 10 years ago

There is a more efficient way to do this. If you build a multilib enabled gcc just add these two seds before you run configure, and you're good to go:

sed -i 's@../lib)@../lib32)@g' gcc/config/i386/t-linux64
sed -i 's@../lib64@../lib@g' gcc/config/i386/t-linux64

This will modify the search paths so gcc will look for 64 bit libraries in ../lib & for 32 bit libraries in ../lib32

comment:2 by Armin, 10 years ago

Standard dynamic linker location on 32 bit is /lib and on 64 bit is /lib64.

Some newer multilib setups use your approach (mine does), but then again, binary software will still look in /lib64 for dynamic linker since it's standard location. In LFS there's {,/usr}/lib64 -> {,/usr}/lib symlink to avoid using --libdir switches all over the place.

comment:3 by bdubbs@…, 10 years ago

Resolution: fixed
Status: newclosed

Fixed at revision 10530.

Note: See TracTickets for help on using tickets.