Skip to content

Commit

Permalink
disable cgo_enabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
amwat committed Nov 19, 2020
1 parent e1cd98a commit 563eaa1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ PATH:=$(shell . hack/build/setup-go.sh && echo "$${PATH}")
GOROOT:=
# enable modules
GO111MODULE=on
export PATH GOROOT GO111MODULE
# disable CGO by default for static binaries
CGO_ENABLED=0
export PATH GOROOT GO111MODULE CGO_ENABLED
# work around broken PATH export
SPACE:=$(subst ,, )
SHELL:=env PATH=$(subst $(SPACE),\$(SPACE),$(PATH)) $(SHELL)
Expand Down

0 comments on commit 563eaa1

Please sign in to comment.