aboutsummaryrefslogtreecommitdiff
path: root/go/android/go_marlin32
diff options
context:
space:
mode:
Diffstat (limited to 'go/android/go_marlin32')
-rwxr-xr-xgo/android/go_marlin3211
1 files changed, 11 insertions, 0 deletions
diff --git a/go/android/go_marlin32 b/go/android/go_marlin32
new file mode 100755
index 00000000..d02dadc9
--- /dev/null
+++ b/go/android/go_marlin32
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+# Invoke the Go cross compiler for marlin32.
+# 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-clang" \
+ CXX="arm-linux-androideabi-clang++" \
+ exec go_target "$@"