Building against 32- and 64-bit libraries

Bruce Dubbs bdubbs at
Sun Aug 28 21:34:50 PDT 2005

Michael Kipper wrote:
> Hello,
> Appologies if this is in the wrong group, but I figured this would be the
> forum to ask this question.
> I've build an LFS system which is essentially entirely 64-bit, for my
> Athlon64. However, there are a few occasions where i686 support is
> required, specifically for GRUB, and more recently for me, for 32-bit
> Firefox (extension support?).
> I've built a self-hosted i686 toolchain in /opt/i686-gcc, and adjusted the
> linker for it as per LFS instructions so resulting binaries link to
> /opt/i686-gcc/lib/
> My question is: Can I build 32- and 64-bit libraries, and stick them in
> /lib32 and /lib64 and have them coexist? That is, when I run ldconfig, it
> sees 32- and 64-bit versions of and adds them to the database. Then
> 32-bit program foo requests, will the linker know to use the 32-bit
> version of libX?
> If not, how have others gone about this?

Forwarding to lfs-dev.  That is a better forum for this question.
  -- Bruce

More information about the lfs-dev mailing list