2021-10-21 02:56:29 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
if [[ "$GOOS" == "linux" ]]; then
|
|
|
|
if [[ "$GOARCH" == "arm" ]]; then
|
2021-10-21 05:36:04 -04:00
|
|
|
CC=arm-linux-gnueabi-gcc CGO_ENABLED=1 GOOS=linux GOARCH=arm go build -ldflags "-linkmode external -extldflags -static -s -w" $@
|
2021-10-21 02:56:29 -04:00
|
|
|
fi
|
|
|
|
if [[ "$GOARCH" == "arm64" ]]; then
|
2021-10-21 05:36:04 -04:00
|
|
|
CC=aarch64-linux-gnu-gcc CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build -ldflags "-linkmode external -extldflags -static -s -w" $@
|
2021-10-21 02:56:29 -04:00
|
|
|
fi
|
|
|
|
fi
|