Skip to content

Commit

Permalink
docs: add configure opts to gmp readme (#734)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkova authored Oct 11, 2024
2 parents 218e8a1 + fedec58 commit f59ab4e
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions ext/gmp/gen/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
# Generated architecture specific `.c`, `.s`, and `.h` files

To generate these, first run the `./configure` script under the unpacked GMP
dependency directory. Afterwards, navigate under `mpn/` and run the the
following to generate the assembly files:
To generate these, first run the `./configure` script under the unpacked GMP dependency directory with the following options:

macOS:
```terminal
./configure --with-pic --disable-shared
```

linux-x86_64:
```terminal
./configure --with-pic --disable-shared --host=x86_64-linux-musl
```

linux-aarch64:
```terminal
./configure --with-pic --disable-shared --host=aarch64-linux-musl
```

Next, navigate under `mpn/` and run the following to generate the assembly files:

```bash
for file in $(find . -maxdepth 1 -print | grep "\.asm$"); do
Expand Down

0 comments on commit f59ab4e

Please sign in to comment.