Skip to content

Commit

Permalink
Document requirements for cross compiling from OSX (#804)
Browse files Browse the repository at this point in the history
* Document requirements for cross compiling from OSX 

Inspiration: #384 (comment)

* Document cross compilation steps using xgo for MACOSX
  • Loading branch information
Vishnu Mohandas committed May 15, 2020
1 parent db4c942 commit e77f7dd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Expand Up @@ -212,9 +212,15 @@ This library can be cross-compiled.

In some cases you are required to the `CC` environment variable with the cross compiler.

Additional information:
- [#491](https://github.com/mattn/go-sqlite3/issues/491)
- [#560](https://github.com/mattn/go-sqlite3/issues/560)
## Cross Compiling from MAC OSX
The simplest way to cross compile from OSX is to use [xgo](https://github.com/karalabe/xgo).

Steps:
- Install [xgo](https://github.com/karalabe/xgo) (`go get github.com/karalabe/xgo`).
- Ensure that your project is within your `GOPATH`.
- Run `xgo local/path/to/project`.

Please refer to the project's [README](https://github.com/karalabe/xgo/blob/master/README.md) for further information.

# Google Cloud Platform

Expand Down

0 comments on commit e77f7dd

Please sign in to comment.