aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishnu Mohandas <vishnumohandas@gmail.com>2020-05-15 21:18:12 +0530
committerGitHub <noreply@github.com>2020-05-16 00:48:12 +0900
commite77f7dd61e08f390669d4c83cb2d7f6e8b2bcb1e (patch)
tree85906e079d1a996a794b7176820b2a7bb7591273
parentEnable all prefixes for named parameters and allow for unused named parameter... (diff)
downloadgolite-e77f7dd61e08f390669d4c83cb2d7f6e8b2bcb1e.tar.gz
golite-e77f7dd61e08f390669d4c83cb2d7f6e8b2bcb1e.tar.xz
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
-rw-r--r--README.md12
1 files 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