Skip to main content

soname

Function soname 

Source
pub fn soname(libs_dir: &Path, lib: &str) -> Result<String>
Expand description

Returns the SONAME of lib in libs_dir.

When the library file exists, arm-linux-gnueabihf-readelf -d is used to extract the SONAME from the binary. When only a versioned file exists (e.g. libz.so.1.2.13 without libz.so), the versioned filename is returned directly.

ยงErrors

Returns an error if arm-linux-gnueabihf-readelf fails or the SONAME cannot be determined.