From a5f81863a8e1427632447f4e7b851e270eae63cc Mon Sep 17 00:00:00 2001 From: Santeri Hannula Date: Fri, 11 Oct 2024 12:23:22 +0300 Subject: [PATCH 1/2] docs: add configure opts to gmp readme --- ext/gmp/gen/README.md | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/ext/gmp/gen/README.md b/ext/gmp/gen/README.md index 0a9dab4266..836e13e2da 100644 --- a/ext/gmp/gen/README.md +++ b/ext/gmp/gen/README.md @@ -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: + +maoOS: +```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 From fedec585743de76cecf26e0cdf5201df966bfeb6 Mon Sep 17 00:00:00 2001 From: Pyry Kovanen Date: Fri, 11 Oct 2024 13:23:28 +0300 Subject: [PATCH 2/2] gmp: fix readme typo --- ext/gmp/gen/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/gmp/gen/README.md b/ext/gmp/gen/README.md index 836e13e2da..6228292b1b 100644 --- a/ext/gmp/gen/README.md +++ b/ext/gmp/gen/README.md @@ -2,7 +2,7 @@ To generate these, first run the `./configure` script under the unpacked GMP dependency directory with the following options: -maoOS: +macOS: ```terminal ./configure --with-pic --disable-shared ```