summaryrefslogtreecommitdiff
path: root/misc/nacl/go_nacl_amd64p32_exec
diff options
context:
space:
mode:
Diffstat (limited to 'misc/nacl/go_nacl_amd64p32_exec')
-rwxr-xr-xmisc/nacl/go_nacl_amd64p32_exec10
1 files changed, 10 insertions, 0 deletions
diff --git a/misc/nacl/go_nacl_amd64p32_exec b/misc/nacl/go_nacl_amd64p32_exec
new file mode 100755
index 000000000..0a5ed651f
--- /dev/null
+++ b/misc/nacl/go_nacl_amd64p32_exec
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+eval $(go env)
+
+export NACLENV_GOARCH=$GOARCH
+export NACLENV_GOOS=$GOOS
+export NACLENV_GOROOT=/go
+export NACLENV_NACLPWD=$(pwd | sed "s;$GOROOT;/go;")
+
+exec sel_ldr_x86_64 -l /dev/null -S -e "$@"