diff --git a/build-all.sh b/build-all.sh index 910ebdbe..c2374fce 100755 --- a/build-all.sh +++ b/build-all.sh @@ -72,7 +72,7 @@ for PLATFORM in "${PLATFORMS[@]}"; do set_gomips "$GOARCH" BIN_FILENAME="${OUTPUT}-${GOOS}-${GOARCH}${GOARM}" if [[ "${GOOS}" == "windows" ]]; then BIN_FILENAME="${BIN_FILENAME}.exe"; fi - CMD="GOOS=${GOOS} GOARCH=${GOARCH} ${GO_ARM} ${GO_MIPS} ${GOBIN} build ${BUILD_FLAGS} -o ${BIN_FILENAME} ./cmd" + CMD="CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} ${GO_ARM} ${GO_MIPS} ${GOBIN} build ${BUILD_FLAGS} -o ${BIN_FILENAME} ./cmd" echo "${CMD}" eval "$CMD" || FAILURES="${FAILURES} ${GOOS}/${GOARCH}${GOARM}" # CMD="../upx -q ${BIN_FILENAME}"; # upx --brute produce much smaller binaries @@ -117,4 +117,4 @@ if [[ "${FAILURES}" != "" ]]; then echo "" echo "failed on: ${FAILURES}" exit 1 -fi \ No newline at end of file +fi