Add static to ldflags (#1651)
Should fix "not found" error with CGO compiled Fleet binary due to missing static C libraries.
This commit is contained in:
@@ -47,6 +47,7 @@ builds:
|
||||
flags:
|
||||
- -trimpath
|
||||
ldflags:
|
||||
- -extldflags "-static"
|
||||
- -X github.com/kolide/kit/version.appName={{ .ArtifactName }}
|
||||
- -X github.com/kolide/kit/version.version={{ .Version }}
|
||||
- -X github.com/kolide/kit/version.branch={{ .Branch }}
|
||||
|
||||
Reference in New Issue
Block a user