Skip to content

Commit

Permalink
Merge pull request #211 from 0xAnarz/patch-1
Browse files Browse the repository at this point in the history
Add CGO environment variables for Go compilation
  • Loading branch information
viferga authored Oct 20, 2021
2 parents e1a3db7 + 81639f2 commit c3d25bb
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 c3d25bb

Please sign in to comment.