Update builds to use CGO_ENABLED=0

Particularly useful for Android, since it avoids having to acquire
an Android NDK compiler.
This commit is contained in:
Anders Pitman
2020-11-27 22:17:32 -07:00
parent 19b843ea40
commit 35874f7df0
2 changed files with 11 additions and 16 deletions

View File

@@ -1,3 +1,4 @@
#!/bin/bash
echo Building platform android-arm
GOOS=android GOARCH=arm CGO_ENABLED=1 CC=$HOME/Android/Sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi30-clang go build -o build/boringproxy-android-arm