Browse Source

golang: Fix 64-bit builds

android-5
Fredrik Fornwall 9 years ago
parent
commit
56e5fb2365
  1. 4
      packages/golang/build.sh

4
packages/golang/build.sh

@ -16,6 +16,10 @@ termux_step_make_install () {
elif [ "$TERMUX_ARCH" = "i686" ]; then elif [ "$TERMUX_ARCH" = "i686" ]; then
export GOARCH=386 export GOARCH=386
export GO386=sse2 export GO386=sse2
elif [ "$TERMUX_ARCH" = "aarch64" ]; then
export GOARCH=arm64
elif [ "$TERMUX_ARCH" = "x86_64" ]; then
export GOARCH=amd64
else else
echo "ERROR: Unsupported arch: $TERMUX_ARCH" echo "ERROR: Unsupported arch: $TERMUX_ARCH"
exit 1 exit 1

Loading…
Cancel
Save