Hi, I am refactoring a command-line app that use both ImageMagick and GraphicsMagick. Previous, it shelled out to terminal to call those, now I want to use FFI. However, I am running into issue linking them because both ImageMagick and GraphicsMagick have pretty much the same C API surface.
My question is is it possible to link to both of them from them same Rust app?
My app is setup to use
pkg-config, which did not work, as I cannot specify which library to link to for each of my extern declarations. I also tried to use
#[link(name = "libname")] and that appears to have yielded the same result.