I maintain a package that wraps a dynamic library. To better support pre-compilation, the first thing I tried was:
const lib = Libdl.find_library(...)
include_dependency(lib)
Unfortunately, my intuition was wrong because find_library's return value does not include the library's file extension. Is there a simple way to handle this that I'm missing? I could append the file extension, but it varies depending on platform, and I'd rather not try to (poorly) create the logic to figure it out.
- Jay