Document requirements for cross compiling from OSX (#804)

* Document requirements for cross compiling from OSX 

Inspiration: https://github.com/mattn/go-sqlite3/issues/384#issuecomment-433584967

* Document cross compilation steps using xgo for MACOSX
This commit is contained in:
Vishnu Mohandas 2020-05-15 21:18:12 +05:30 committed by GitHub
parent db4c9426f8
commit e77f7dd61e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 3 deletions

View File

@ -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. In some cases you are required to the `CC` environment variable with the cross compiler.
Additional information: ## Cross Compiling from MAC OSX
- [#491](https://github.com/mattn/go-sqlite3/issues/491) The simplest way to cross compile from OSX is to use [xgo](https://github.com/karalabe/xgo).
- [#560](https://github.com/mattn/go-sqlite3/issues/560)
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 # Google Cloud Platform