From e77f7dd61e08f390669d4c83cb2d7f6e8b2bcb1e Mon Sep 17 00:00:00 2001 From: Vishnu Mohandas Date: Fri, 15 May 2020 21:18:12 +0530 Subject: [PATCH] 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 --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7cdad13..e977fd6 100644 --- a/README.md +++ b/README.md @@ -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