gateway-st
gateway-st copied to clipboard
freebsd builds broken with CGO_ENABLED=0
FreeBSD binaries are broken if compiled with CGO_ENABLED=0
.
GOOS=freebsd GOARCH=amd64 CGO_ENABLED=0 go build -o ./gateway-freebsd-amd64 -tags kqueue -ldflags '-linkmode external -extldflags "-static"'
When running the resulting binary on a FreeBSD 13 amd64 machine:
./gateway_freebsd_amd64
Trace/BPT trap (core dumped)
It appears to be broken for Gateway-MT, Linksharing, and Authservice binaries built the same way too.
Change https://review.dev.storj.io/c/storj/gateway/+/5865 mentions this issue.
Change https://review.dev.storj.io/c/storj/gateway/+/5865 mentions this issue.