This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
19
unikernel/duniverse/ocaml-gmp/README.md
Normal file
19
unikernel/duniverse/ocaml-gmp/README.md
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
## GMP - Packaged with Dune
|
||||
|
||||
More info on GMP: https://gmplib.org/
|
||||
|
||||
To use GMP in a _cross-compilation_-friendly way, simply add this library in
|
||||
your library dependencies and make sure it is locally fetched using the
|
||||
`opam-monorepo` plugin (https://github.com/ocamllabs/opam-monorepo).
|
||||
|
||||
Example Dune configuration:
|
||||
```
|
||||
(library my_library)
|
||||
(foreign_stubs (language c) (include_dirs (lib gmp)))
|
||||
(libraries gmp)
|
||||
...
|
||||
)
|
||||
```
|
||||
|
||||
This configuration enables the inclusion of `gmp.h` and the usage of `gmp` functions,
|
||||
even in a cross-compiled environment such as MirageOS.
|
||||
Loading…
Add table
Add a link
Reference in a new issue