patchelf 0.2.1

patchelf rust bindings
Documentation

patchelf-rs

Crates.io docs.rs

Rust FFI for patchelf that we can call patchelf directly in a dirty way.

[dependencies]
patchelf = "0.2.1"

Usage

  • set soname
PatchElf::config()
   .input("libpng.so")
   .output("libpng2.so")
   .set_soname("libpng2.so")
   .patch();
  • print soname
PatchElf::config()
   .input("libz.so")
   .print_soname()
   .patch();

Seed doc for more usages.