gophi/build-gopher.sh
kim (grufwub) 5957b7e588 stop using CGO for compiled binaries
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-07-13 14:24:09 +01:00

3 lines
225 B
Bash
Executable File

#!/bin/sh
CC='x86_64-linux-musl-gcc' CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -buildmode 'pie' -a -v -tags 'netgo osusergo static_build' -ldflags '-s -w -extldflags "-static"' -o 'gophi.gopher' main_gopher.go