This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-cloudmonkey.git
The following commit(s) were added to refs/heads/master by this push:
new 43a008c Makefile: Statically building the binary to not depend on gcc
compiler (#59)
43a008c is described below
commit 43a008cdaf012ec4819be7a157027f0680a4f174
Author: Khosrow Moossavi <[email protected]>
AuthorDate: Tue Jun 16 22:57:58 2020 -0400
Makefile: Statically building the binary to not depend on gcc compiler (#59)
This is to statically build the cmk binary. It means it doesn't depend on
gcc being present to work. The use case is that the cmk binary without this
won't work in any alpine docker image.
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 36a4205..014dc98 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,7 @@ PKGS = $(or $(PKG),$(shell $(GO) list ./... | grep -v
"^$(PACKAGE)/vendor/")
TESTPKGS = $(shell $(GO) list -f '{{ if or .TestGoFiles .XTestGoFiles }}{{
.ImportPath }}{{ end }}' $(PKGS))
GIT_SHA = $(shell git rev-parse --short HEAD)
-GO = go
+GO = CGO_ENABLED=0 go
GODOC = godoc
GOFMT = gofmt
TIMEOUT = 15