Frans de Boer <[email protected]> writes:
> Of course I know that those systems can support multiple bit sizes, but
> the FHS 3.0 leaves this all open. Nowhere it is stated that machines
> with only a single bit size should have only /lib, the may have (or not)
> a qualifier tagged to it. If I chose to have only 64-bit libraries on my
> amd64, I am free to only use library directories without qualifier.
> That said, I can appreciate also the idea that on hardware capable of
> handling multiple architectures - read size of data paths - you always use
> qualifiers, regardless if only one or multiple library directories are
> used.
I'm not sure if you're familiar with how Debian approached this, but I
personally consider it generally superior to the lib32/lib64 approach
since it allows for arbitrary different ABIs with separate libraries and
avoids making any assumptions about the distinctions between them.
In Debian and Debian-derived multiarch systems, all multiarch-aware
libraries are moved out of /lib and /usr/lib into, e.g.,
/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu
In other words, an architecture string is appended, and those directories
are then added to the dynamic linker search path. For the typical i386
and x86_64 cases, one has /usr/lib/i386-linux-gnu and
/usr/lib/x86_64-linux-gnu directories. But this generalizes to any number
of architectures, and also usefully generalizes to a directory location
for cross-compilers and similar tools. (In other words, nothing
constrains those directories to only be for architectures whose binaries
are runnable on the local system.)
--
Russ Allbery ([email protected]) <http://www.eyrie.org/~eagle/>
_______________________________________________
fhs-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/fhs-discuss