Skip to content

Commit

Permalink
Improve WASI GMP building information
Browse files Browse the repository at this point in the history
  • Loading branch information
agoode committed Feb 15, 2024
1 parent 31b80af commit 62c1ffb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doc/guide/src/RunningOnWASI.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@ command line (using something like https://wasmtime.dev[Wasmtime]).
in https://github.com/WebAssembly/wasi-sdk[wasi-sdk]. Follow the
directions to download and unpack a copy.

** The <<GMP#>> library is required. It must be compiled for WASI. An
example configuration command is below (substitute your own wasi-sdk paths):
** The <<GMP#>> library is required. It must be compiled for
WASI. Download it from https://gmplib.org, build it and install it
to a local prefix. An example configuration command is below
(substitute your own wasi-sdk paths):
+
[,shell]
----
./configure --host=wasm32-unknown-wasi \
--prefix=$HOME/gmp-wasi-INSTALL \
CC=$HOME/wasi-sdk-21.0/bin/clang \
RANLIB=$HOME/wasi-sdk-21.0/bin/ranlib \
CFLAGS=-D_WASI_EMULATED_SIGNAL LDFLAGS=-lwasi-emulated-signal
Expand Down

0 comments on commit 62c1ffb

Please sign in to comment.