aboutsummaryrefslogtreecommitdiff
path: root/go/android/go_shamu
blob: 7e1ffbeae4ad4fd90011901bfca235dc7a5bcc9a (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

# Invoke the Go cross compiler for shamu.
# Uses ../go_target to add PIE flags.
#
# This is just an example for an arm device.

GOOS="android" GOARCH="arm" CGO_ENABLED="1" \
	CC="arm-linux-androideabi-gcc" \
	CXX="arm-linux-androideabi-g++" \
	exec go_target "$@"