aboutsummaryrefslogtreecommitdiff
path: root/go/android/go_shamu
diff options
context:
space:
mode:
Diffstat (limited to 'go/android/go_shamu')
-rwxr-xr-xgo/android/go_shamu11
1 files changed, 11 insertions, 0 deletions
diff --git a/go/android/go_shamu b/go/android/go_shamu
new file mode 100755
index 00000000..7e1ffbea
--- /dev/null
+++ b/go/android/go_shamu
@@ -0,0 +1,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 "$@"