[x] detect whether the top-level ELF is 64 or 32 bit, and pass that to the from_path function when locating libs
[x] make sure that the expansion of rpath interpolates lib64 or lib resp. into $LIB.
[x] Finally, there's the $PLATFORM token in rpaths, that currently is hard-coded to be interpolated by x86_64, but could be inferred from getauxval() by default, and potentially overriden with a flag --platform ....
This should be very easy:
[x] detect whether the top-level ELF is 64 or 32 bit, and pass that to the
from_path
function when locating libs[x] make sure that the expansion of rpath interpolates
lib64
orlib
resp. into $LIB.[x] Finally, there's the $PLATFORM token in rpaths, that currently is hard-coded to be interpolated by x86_64, but could be inferred from
getauxval()
by default, and potentially overriden with a flag--platform ...
.