Document CGo cache cleaning
This commit is contained in:
parent
29bd0ba88f
commit
8a1cfbb064
1 changed files with 2 additions and 2 deletions
|
@ -108,10 +108,10 @@ go build ./cmd/uncanny
|
|||
|
||||
Note that CGO is required because the source code makes use of the global
|
||||
`messages.h` C header file. If you need to cross-compile, use the following
|
||||
command:
|
||||
command (-a cleans the cache, may be necessary when messages.h changes):
|
||||
|
||||
```shell
|
||||
GOARCH=arm GOOS=linux CGO_ENABLED=1 CC=arm-linux-gnueabi-gcc go build -o uncanny-linux-arm ./cmd/uncanny
|
||||
GOARCH=arm GOOS=linux CGO_ENABLED=1 CC=arm-linux-gnueabi-gcc go build -a -o uncanny-linux-arm ./cmd/uncanny
|
||||
```
|
||||
|
||||
The resulting `uncanny` executable should be running on the controlling
|
||||
|
|
Loading…
Reference in a new issue