Skip to content

Commit bfb2610

Browse files
committed
Update readme from Go port.
1 parent c3d25bb commit bfb2610

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

source/ports/go_port/source/README.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,17 @@ func main() {
5959
go build
6060
```
6161

62-
In case of using precompiled binaries (in Linux), when running any application using MetaCall, you must set the environment variable `LD_LIBRARY_PATH` pointing to the MetaCall library (a part of setting any other required environment variable related to MetaCall if needed). For example:
63-
64-
```sh
65-
export LD_LIBRARY_PATH="/gnu/store/`ls /gnu/store/ | grep metacall | head -n 1`/lib"
66-
```
67-
68-
`go build` may require to set CGO environment variables pointing to MetaCall libraries in case of undefined C headers during compilation :
69-
70-
```sh
71-
export CGO_CFLAGS=-I"/gnu/store/`ls /gnu/store/ | grep metacall | head -n 1`/include"
72-
export CGO_LDFLAGS=-L"/gnu/store/`ls /gnu/store/ | grep metacall | head -n 1`/lib"
73-
```
62+
In case of using precompiled binaries (in Linux):
63+
- When building, `go build` may require to set CGO environment variables pointing to MetaCall libraries in case of undefined C headers during compilation:
64+
```sh
65+
export CGO_CFLAGS="-I/gnu/store/`ls /gnu/store/ | grep metacall | head -n 1`/include"
66+
export CGO_LDFLAGS="-L/gnu/store/`ls /gnu/store/ | grep metacall | head -n 1`/lib"
67+
```
68+
69+
- When running any application using MetaCall, you must set the environment variable `LD_LIBRARY_PATH` pointing to the MetaCall library (a part of setting any other required environment variable related to MetaCall if needed). For example:
70+
```sh
71+
export LD_LIBRARY_PATH="/gnu/store/`ls /gnu/store/ | grep metacall | head -n 1`/lib"
72+
```
7473

7574
## Testing
7675

@@ -82,7 +81,7 @@ go test
8281

8382
## Benchmarks
8483

85-
For running tests:
84+
For running benchmarks:
8685

8786
```sh
8887
go test -bench=.

0 commit comments

Comments
 (0)