New comment by anatol on void-packages repository https://github.com/void-linux/void-packages/pull/29434#issuecomment-967229036 Comment: > @travankor They're just suggesting you do > > ``` > cd ../init > export CGO_ENABLED=0 > go install -p "$XBPS_MAKEJOBS" -mod=readonly -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" > ``` > > and remove the pre_build part. This. Or even better to avoid exporting the CGO_ENABLED variable at all: `CGO_ENABLED=0 go install -p "$XBPS_MAKEJOBS" -mod=readonly -x -tags "${go_build_tags}" -ldflags "${go_ldflags}"`