diff options
author | Mike Frysinger <vapier@google.com> | 2016-03-28 21:26:30 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2016-04-06 19:30:11 +0000 |
commit | 825c55c898c02993c2faa60d36ff638b9928d4b6 (patch) | |
tree | 0e065297f0b3067c74b2358888ef199b41ad1226 | |
parent | c0c256c4358a2f9b885f2fa895aebc488283f978 (diff) | |
download | libweave-825c55c898c02993c2faa60d36ff638b9928d4b6.tar.gz |
readme: document cross-compiling for end users
Clarify the builtin cross-compiling support is meant for libweave
developers only.
BUG=b/26741388
Change-Id: I81c0d897d6b2f5d257ab9d50d2f96bf3d0a5448f
Reviewed-on: https://weave-review.googlesource.com/3070
Reviewed-by: Alex Vakulenko <avakulenko@google.com>
-rw-r--r-- | README.md | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -128,6 +128,29 @@ See [the examples README](/examples/daemon/README.md) for details. ### Cross-compiling +#### libweave users + +In order to cross-compile, all you need to configure is CC/CXX/AR. + +``` +make CC=your-cc CXX=your-cxx AR=your-ar +``` + +So if you have a toolchain in a path like `/opt/vendor/bin/arm-linux-gcc`, do: + +``` +make \ + CC=/opt/vendor/bin/arm-linux-gcc \ + CXX=/opt/vendor/bin/arm-linux-g++ \ + AR=/opt/vendor/bin/arm-linux-ar +``` + +#### libweave developers + +*** note +**Note:** This is only for developers who are hacking on libweave itself. +*** + The build supports transparently downloading & using a few cross-compilers. Just add `cross-<arch>` to the command line in addition to the target you want to actually build. |