fpm
fpm copied to clipboard
Add `-Lpath` to support compiled native packages, and distribute compiled binary fpm packages
Description
This might be a very small feature addition, but it seems significant.
By adding the library-dir tag to fpm.toml, makes fpm easier to call the local link library, and distribute the link library as an fpm package.
This enables closed-source linked libraries to be distributed as fpm packages as well, which is beneficial for the distribution of some large base and commercial libraries, like OpenBLAS, MKL?
Possible Solution
Add library-dir tag to fpm.toml to support -Lpath option.
Additional Information
No response
I created a fgsl fpm package (zoziha/fgsl-binary-objs) with only the fgsl.mod file, which is callable under msys2 environment.
It is possible to distribute the link library of fgsl (libfgsl.dll.a) in zoziha/fgsl-binary-objs if the -Lpath feature is supported.
To this end, we need to set specific versions and branches for such link library packages to deal with different operating systems, compilers, and CPU architectures.