Skip to content

Commit

Permalink
Add CGO environment variables for Go compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAnarz authored Oct 20, 2021
1 parent e1a3db7 commit 81639f2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/ports/go_port/source/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ In case of using precompiled binaries (in Linux), when running any application u
export LD_LIBRARY_PATH="/gnu/store/`ls /gnu/store/ | grep metacall | head -n 1`/lib"
```

`go build` may require to set CGO environment variables pointing to MetaCall libraries in case of undefined C headers during compilation :

```sh
export CGO_CFLAGS=-I"/gnu/store/`ls /gnu/store/ | grep metacall | head -n 1`/include"
export CGO_LDFLAGS=-L"/gnu/store/`ls /gnu/store/ | grep metacall | head -n 1`/lib"
```

## Testing

For running tests:
Expand Down

0 comments on commit 81639f2

Please sign in to comment.