1 #!/bin/bash 2 3 # Invoke the Go cross compiler for chell. 4 # Uses ../go_target to add PIE flags. 5 # 6 # This is just an example for an amd64 board. 7 8 GOOS="linux" GOARCH="amd64" CGO_ENABLED="1" \ 9 CC="x86_64-cros-linux-gnu-clang" \ 10 CXX="x86_64-cros-linux-gnu-clang++" \ 11 exec go_target "$@" 12