Skip to content

Commit dc44ef2

Browse files
authored
docs: fix library path when building with WasmEdge (#110)
Signed-off-by: spacewander <[email protected]>
1 parent 8e5724a commit dc44ef2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,12 @@ export wasmtime_prefix=/path/to/wasm-nginx-module/wasmtime-c-api
3535
```
3636

3737
* Download WasmEdge with the `./install-wasmedge.sh`.
38-
Remember to add the `$HOME/.wasmedge/lib` to the library search path when you build Nginx, for instance,
38+
Remember to add the `wasmedge/lib` to the library search path when you build Nginx, for instance,
3939

4040
```
41+
export wasmedge_prefix=/path/to/wasm-nginx-module/wasmedge
4142
./configure ... \
42-
--with-ld-opt="-Wl,-rpath,${HOME}/.wasmedge/lib" \
43+
--with-ld-opt="-Wl,-rpath,${wasmedge_prefix}/lib" \
4344
```
4445

4546
## Directives
@@ -52,8 +53,8 @@ Remember to add the `$HOME/.wasmedge/lib` to the library search path when you bu
5253

5354
**context:** *http*
5455

55-
Select the WASM VM. Currently, only wasmtime and WasmEdge are supported.
56-
If the directive is not set, the WASM VM won't be enabled.
56+
Select the Wasm VM. Currently, only wasmtime and WasmEdge are supported.
57+
If the directive is not set, the Wasm VM won't be enabled.
5758

5859
## Methods
5960

0 commit comments

Comments
 (0)