Skip to content

Commit b29f34a

Browse files
authored
Use static linking (#187)
Signed-off-by: Jose Fuentes <[email protected]>
1 parent 15d34e3 commit b29f34a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ define LDFLAGS
2626
-X "github.com/jetstack/preflight/pkg/client.AuthServerDomain=$(OAUTH_AUTH_SERVER_DOMAIN)"
2727
endef
2828

29-
GO_BUILD:=go build -ldflags '$(LDFLAGS)'
30-
GO_INSTALL:=go install -ldflags '$(LDFLAGS)'
29+
GO_BUILD:=CGO_ENABLED=0 go build -ldflags '$(LDFLAGS)'
30+
GO_INSTALL:=CGO_ENABLED=0 go install -ldflags '$(LDFLAGS)'
3131

3232
export GO111MODULE=on
3333

0 commit comments

Comments
 (0)