rust-bin: use linker to set rpath
rust-bin: use linker to set rpath

Patchelf should be reserved for when the ELF cannot be generated
correctly in the first place. This is not the case here because we have
control over the linker flags. The limitation is that -C link-args can
only be specified once, so consolidate the generation of link-args. Also
introduce some new intermediate variables in link-args generation for
customization.

Patchelf was running only in ${PKGD} because patching the ELF in ${D}
would cause objcopy to fail when splitting the debug sections. This is
not a problem when setting it correctly in the linker. The benefit is
that the rpath is correct in the sysroot as well.

This also switches the rpaths to be relative so that they work in both
the sysroot and the target in the same way.

Signed-off-by: Tyler Hall <0f07f7b24da3d3335fca90956babf949d4035c74@lexmark.com>
Signed-off-by: Steven Walter <ed14f51d6a073216f491444e7fd75191443b320a@lexmark.com>

meta-rust/meta-rust,meta-rust/meta-rust,starlab-io/meta-rust,starlab-io/meta-rust,meta-rust/meta-rust,meta-rust/meta-rust,meta-rust/meta-rust