Building against 32- and 64-bit libraries
bdubbs at swbell.net
Sun Aug 28 21:34:50 PDT 2005
Michael Kipper wrote:
> 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
> 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 libX.so and adds them to the database. Then
> 32-bit program foo requests libX.so, 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.
More information about the lfs-dev